mirror of https://github.com/vapor/docs.git
Update LoginRedirectMiddleware.md
What -> when more explanation to make it clearer
This commit is contained in:
parent
ffe4d8d3e0
commit
9d207f2e5b
|
|
@ -4,7 +4,7 @@ currentMenu: LoginRedirectMiddleware
|
|||
|
||||
# Login Redirect Middleware
|
||||
|
||||
`LoginRedirectMiddleware` is a Middleware to be used when you what to create an automatic redirection from any routes when the user is not authenticated.
|
||||
`LoginRedirectMiddleware` is a Middleware to be used when you want to create an automatic redirection from any routes when the user is not authenticated. Users that want to access to a protected route will be redirected to a single route.
|
||||
|
||||
## Example
|
||||
In your main.swift file:
|
||||
|
|
|
|||
Loading…
Reference in New Issue