mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 13:05:56 +00:00
MVC Example - you can learn a lot | Asleep for your eyes (again)
Former-commit-id: cd66c00b29c903b724763cb84cae96426934acb5
This commit is contained in:
@@ -80,6 +80,15 @@ func TestRouterWildcardAndStatic(t *testing.T) {
|
||||
{"GET", "/some/static", h, []testRouteRequest{
|
||||
{"GET", "", "/some/static", iris.StatusOK, same_as_request_path},
|
||||
}},
|
||||
|
||||
{"GET", "/s/{p:path}", h2, []testRouteRequest{
|
||||
{"GET", "", "/s/that/is/wildcard", iris.StatusForbidden, same_as_request_path},
|
||||
{"GET", "", "/s/did", iris.StatusForbidden, same_as_request_path},
|
||||
{"GET", "", "/s1/that/is/wildcard", iris.StatusNotFound, from_status_code},
|
||||
}},
|
||||
{"GET", "/s/static", h, []testRouteRequest{
|
||||
{"GET", "", "/s/static", iris.StatusOK, same_as_request_path},
|
||||
}},
|
||||
}
|
||||
|
||||
testTheRoutes(t, tt, false)
|
||||
|
||||
Reference in New Issue
Block a user