|
|
|
package routers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/beego/beego/v2/server/web"
|
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/port/beego/controllers"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
h1 := web.NewNamespace("/v1/demo",
|
|
|
|
web.NSCtrlGet("/hello", (*controllers.HelloController).Say),
|
|
|
|
web.NSCtrlGet("/hello2", (*controllers.HelloController).Say),
|
|
|
|
// web.NSGet("/hello1", controllers.SayHello),
|
|
|
|
)
|
|
|
|
web.AddNamespace(h1)
|
|
|
|
} |