1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-28 15:27:03 +00:00
Former-commit-id: 26b0b59ba54caac38d726d7fec562a5d6a0a76e3
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-18 09:36:47 +03:00
parent a7a9e62ffa
commit 43502ed047
5 changed files with 20 additions and 10 deletions

View File

@@ -76,7 +76,7 @@ type UnauthenticatedUserController struct{}
// Get registers a route that will be executed when authentication is not passed
// (see UserController.Get) too.
func (c *UnauthenticatedUserController) Get() string {
return `custom action to redirect on authentication page`
return "custom action to redirect on authentication page"
}
// PostLogin serves

View File

@@ -23,6 +23,10 @@ func newApp() *iris.Application {
// Stops the execution and fires an error before server boot.
app.SetRegisterRule(iris.RouteError)
// If ctx.StopExecution or StopWithXXX then the next route will be executed
// (see mvc/authenticated-controller example too).
app.SetRegisterRule(iris.RouteOverlap)
*/
app.Get("/", getHandler)