1
0
Fork 0

Merge pull request #2197 from pixelfed/staging

Update api routes, remove throttle middleware from inbox endpoint
This commit is contained in:
daniel 2020-05-21 18:04:13 -06:00 committed by GitHub
commit fca90371f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ class Kernel extends HttpKernel
], ],
'api' => [ 'api' => [
'throttle:60,1',
'bindings', 'bindings',
\Barryvdh\Cors\HandleCors::class, \Barryvdh\Cors\HandleCors::class,
], ],

View File

@ -2,7 +2,7 @@
use Illuminate\Http\Request; 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'); Route::post('/users/{username}/inbox', 'FederationController@userInbox');