Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
madsodgaard committed Feb 26, 2021
1 parent 50656c2 commit 48d4b71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ app.middlewares.use(GatekeeperMiddleware())
```

#### Customizing config
By default `GatekeeperMiddleware` uses `app.gatekeeper.config` as it's configuration.
By default `GatekeeperMiddleware` uses `app.gatekeeper.config` as its configuration.
However, you can pass a custom configuration to each `GatekeeperMiddleware` type via the initializer
`GatekeeperMiddleware(config:)`. This allows you to set configuration on a per-route basis.

Expand Down Expand Up @@ -102,7 +102,7 @@ app.gatekeeper.keyMakers.use(.userID)

## Cache 🗄
Gatekeeper uses the same cache as configured by `app.caches.use()` from Vapor, by default.
Therefore it is **important** to setup Vapor's cache if you're using this default behaviour. You can use an in-memory cache for Vapor like so:
Therefore it is **important** to set up Vapor's cache if you're using this default behaviour. You can use an in-memory cache for Vapor like so:

**configure.swift**:
```swift
Expand All @@ -117,6 +117,7 @@ You can override which cache to use by creating your own type that conforms to t

This package is developed and maintained by the Vapor team at [Nodes](https://www.nodesagency.com).
The package owner for this project is [Christian](https://github.com/cweinberger).
Special thanks goes to [madsodgaard](https://github.com/madsodgaard) for his work on the Vapor 4 version!

## License 📄

Expand Down

0 comments on commit 48d4b71

Please sign in to comment.