add debug for domain group testing

This commit is contained in:
John
2019-10-25 16:57:54 +08:00
parent 77cb219057
commit f2b45622d6

View File

@ -334,12 +334,15 @@ func Test_Router_DomainGroup(t *testing.T) {
d.Group("/", func(g *ghttp.RouterGroup) {
g.Group("/app", func(gApp *ghttp.RouterGroup) {
gApp.GET("/{table}/list/{page}.html", func(r *ghttp.Request) {
fmt.Println("/{table}/list/{page}.html")
r.Response.Write(r.Get("table"), "&", r.Get("page"))
})
gApp.GET("/order/info/{order_id}", func(r *ghttp.Request) {
fmt.Println("/order/info/{order_id}")
r.Response.Write(r.Get("order_id"))
})
gApp.DELETE("/comment/{id}", func(r *ghttp.Request) {
fmt.Println("/comment/{id}")
r.Response.Write(r.Get("id"))
})
})