mirror of
https://github.com/kataras/iris.git
synced 2025-12-28 15:27:03 +00:00
minor
Former-commit-id: 26b0b59ba54caac38d726d7fec562a5d6a0a76e3
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user