• astaxie's avatar
    beego:namespace support nest · dbebf8df
    astaxie authored
    ns := NewNamespace("/v3",
    		NSAutoRouter(&TestController{}),
    		NSNamespace("/shop",
    			NSGet("/order/:id", func(ctx *context.Context) {
    				ctx.Output.Body([]byte(ctx.Input.Param(":id")))
    			}),
    		),
    	)
    dbebf8df
namespace_test.go 4.3 KB