mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:41:00 +00:00
Update tree_test.go
This commit is contained in:
parent
5ad999a3d1
commit
508a57be1e
@ -26,6 +26,10 @@ var routers []testinfo
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
routers = make([]testinfo, 0)
|
routers = make([]testinfo, 0)
|
||||||
|
routers = append(routers, testinfo{"/topic/:id/?:auth", "/topic/1", map[string]string{":id": "1"}})
|
||||||
|
routers = append(routers, testinfo{"/topic/:id/?:auth", "/topic/1/2", map[string]string{":id": "1",":auth":"2"}})
|
||||||
|
routers = append(routers, testinfo{"/topic/:id/?:auth:int", "/topic/1", map[string]string{":id": "1"}})
|
||||||
|
routers = append(routers, testinfo{"/topic/:id/?:auth:int", "/topic/1/123", map[string]string{":id": "1",":auth":"123"}})
|
||||||
routers = append(routers, testinfo{"/:id", "/123", map[string]string{":id": "123"}})
|
routers = append(routers, testinfo{"/:id", "/123", map[string]string{":id": "123"}})
|
||||||
routers = append(routers, testinfo{"/hello/?:id", "/hello", map[string]string{":id": ""}})
|
routers = append(routers, testinfo{"/hello/?:id", "/hello", map[string]string{":id": ""}})
|
||||||
routers = append(routers, testinfo{"/", "/", nil})
|
routers = append(routers, testinfo{"/", "/", nil})
|
||||||
|
Loading…
Reference in New Issue
Block a user