beego:namespace support nest
ns := NewNamespace("/v3",
NSAutoRouter(&TestController{}),
NSNamespace("/shop",
NSGet("/order/:id", func(ctx *context.Context) {
ctx.Output.Body([]byte(ctx.Input.Param(":id")))
}),
),
)
Showing
3 changed files
with
207 additions
and
9 deletions
-
Please register or sign in to post a comment