mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
add authenticated-controller example - proof of concept
Former-commit-id: 7a15da2bd966f2a699337cd494af8b5d1877b11d
This commit is contained in:
@@ -14,9 +14,9 @@ func TestRouteRegisterRuleExample(t *testing.T) {
|
||||
for _, method := range router.AllMethods {
|
||||
tt := e.Request(method, "/").Expect().Status(httptest.StatusOK).Body()
|
||||
if method == "GET" {
|
||||
tt.Equal("From GET: github.com/kataras/iris/v12/_examples/routing/route-register-rule.getHandler")
|
||||
tt.Equal("From GET: iris/_examples/routing/route-register-rule.getHandler")
|
||||
} else {
|
||||
tt.Equal("From " + method + ": github.com/kataras/iris/v12/_examples/routing/route-register-rule.anyHandler")
|
||||
tt.Equal("From " + method + ": iris/_examples/routing/route-register-rule.anyHandler")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user