started implementing a /ping route
This commit is contained in:
@@ -81,7 +81,12 @@ func Init() {
|
||||
),
|
||||
)
|
||||
|
||||
// Namespace containing useful Path such as ping
|
||||
|
||||
default_ns := beego.NewNamespace("/",beego.NSInclude(&controllers.MainController{}))
|
||||
|
||||
beego.AddNamespace(ns)
|
||||
beego.AddNamespace(default_ns)
|
||||
|
||||
beego.Get("/", func(ctx *context.Context) {
|
||||
ctx.Output.Body([]byte(services.DC_NAME))
|
||||
|
||||
Reference in New Issue
Block a user