]> BookStack Code Mirror - bookstack/blob - app/Http/Middleware/ThrottleApiRequests.php
Merge branch 'create-content-meta-tags' of https://github.com/james-geiger/BookStack...
[bookstack] / app / Http / Middleware / ThrottleApiRequests.php
1 <?php
2
3 namespace BookStack\Http\Middleware;
4
5 use Illuminate\Routing\Middleware\ThrottleRequests as Middleware;
6
7 class ThrottleApiRequests extends Middleware
8 {
9
10     /**
11      * Resolve the number of attempts if the user is authenticated or not.
12      */
13     protected function resolveMaxAttempts($request, $maxAttempts)
14     {
15         return (int) config('api.requests_per_minute');
16     }
17 }