kopia lustrzana https://github.com/pixelfed/pixelfed
Update api routes, remove throttle middleware from inbox endpoint
rodzic
310b0e58a1
commit
ba327ca8d6
|
@ -39,7 +39,6 @@ class Kernel extends HttpKernel
|
||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
'api' => [
|
||||||
'throttle:60,1',
|
|
||||||
'bindings',
|
'bindings',
|
||||||
\Barryvdh\Cors\HandleCors::class,
|
\Barryvdh\Cors\HandleCors::class,
|
||||||
],
|
],
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue