Update LoginRedirectMiddleware.md

fix typos
This commit is contained in:
Christopher Saez 2017-03-08 23:27:04 +01:00 committed by GitHub
parent 625130615f
commit ffe4d8d3e0
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ currentMenu: LoginRedirectMiddleware
`LoginRedirectMiddleware` is a Middleware to be used when you what to create an automatic redirection from any routes when the user is not authenticated.
## Examples
In your main.swift file
## Example
In your main.swift file:
```swift
drop.grouped(LoginRedirectMiddleware(loginRoute: "/login")).group("admin") { routeAdmin in