diff options
author | 2018-07-31 09:56:34 +0800 | |
---|---|---|
committer | 2018-07-31 10:23:22 +0800 | |
commit | 47cf1d244ba6cdf20d50c51dedc054b23abd0169 (patch) | |
tree | c05239edba6e28051c1a4460d6d1328b3a27f051 /msb2pilot/src/msb2pilot/routers | |
parent | d56f8f90600e4a98a052b241e4bea2d485338ac6 (diff) |
init msb2pilot project
init project by beego
Issue-ID: MSB-230
Change-Id: Iaf3afb1f8d28e54d61c0bd401737d2604149ff0b
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'msb2pilot/src/msb2pilot/routers')
-rw-r--r-- | msb2pilot/src/msb2pilot/routers/router.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/msb2pilot/src/msb2pilot/routers/router.go b/msb2pilot/src/msb2pilot/routers/router.go new file mode 100644 index 0000000..1a8d1e5 --- /dev/null +++ b/msb2pilot/src/msb2pilot/routers/router.go @@ -0,0 +1,22 @@ +/** + * Copyright (c) 2018 ZTE Corporation. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and the Apache License 2.0 which both accompany this distribution, + * and are available at http://www.eclipse.org/legal/epl-v10.html + * and http://www.apache.org/licenses/LICENSE-2.0 + * + * Contributors: + * ZTE - initial Project + */ +package routers + +import ( + "msb2pilot/controllers" + + "github.com/astaxie/beego" +) + +func init() { + beego.Router("/", &controllers.MainController{}) +} |