diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 33ed320a..c354024c 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -39,7 +39,6 @@ class Kernel extends HttpKernel ], 'api' => [ - 'throttle:60,1', 'bindings', \Barryvdh\Cors\HandleCors::class, ], diff --git a/routes/api.php b/routes/api.php index 0ed69b42..6d7974d6 100644 --- a/routes/api.php +++ b/routes/api.php @@ -2,7 +2,7 @@ use Illuminate\Http\Request; -$middleware = ['auth:api','twofactor','validemail','localization']; +$middleware = ['auth:api','twofactor','validemail','localization', 'throttle:60,1']; Route::post('/users/{username}/inbox', 'FederationController@userInbox');