From ba327ca8d6d97a5f15294a68ad73d2517d3576ca Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 21 May 2020 18:00:14 -0600 Subject: [PATCH] Update api routes, remove throttle middleware from inbox endpoint --- app/Http/Kernel.php | 1 - routes/api.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 33ed320a7..c354024cd 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 0ed69b425..6d7974d62 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');