1
0
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:
Gerasimos (Makis) Maropoulos
2020-05-06 04:45:12 +03:00
parent 47075a82e9
commit ffc493a0b9
9 changed files with 200 additions and 50 deletions

View File

@@ -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")
}
}
}