mirror of https://github.com/vapor/docs.git
Update authentication.md (#691)
This commit is contained in:
parent
a0d23ccf1e
commit
c717d69574
|
|
@ -33,7 +33,7 @@ Each example below will use an instance of an authenticator which we created. In
|
||||||
|
|
||||||
### Route
|
### Route
|
||||||
|
|
||||||
Authenticators are middleware and be be used for protecting routes.
|
Authenticators are middleware and can be used for protecting routes.
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
let protected = app.grouped(UserAuthenticator())
|
let protected = app.grouped(UserAuthenticator())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue