First endpoint: Ping

This commit is contained in:
Deluan
2016-02-24 00:07:57 -05:00
parent 5d6fd4ee6b
commit b9e9d38a9a
5 changed files with 60 additions and 15 deletions
+1 -13
View File
@@ -14,17 +14,5 @@ import (
)
func init() {
ns := beego.NewNamespace("/v1",
beego.NSNamespace("/object",
beego.NSInclude(
&controllers.ObjectController{},
),
),
beego.NSNamespace("/user",
beego.NSInclude(
&controllers.UserController{},
),
),
)
beego.AddNamespace(ns)
beego.Include(&controllers.PingController{})
}