mirror of
https://github.com/pyrohost/pyrodactyl.git
synced 2026-04-05 19:51:59 +02:00
fix: potentially fixed being unable to create routes on frontend due to rate limiting
This commit is contained in:
@@ -77,11 +77,11 @@ Route::group([
|
||||
Route::group(['prefix' => '/subdomain'], function () {
|
||||
Route::get('/', [Elytra\SubdomainController::class, 'index']);
|
||||
Route::post('/', [Elytra\SubdomainController::class, 'store'])
|
||||
->middleware('throttle:5,1'); // Max 5 creates/replaces per minute
|
||||
->middleware('throttle:10,1');
|
||||
Route::delete('/', [Elytra\SubdomainController::class, 'destroy'])
|
||||
->middleware('throttle:5,1'); // Max 5 deletes per minute
|
||||
->middleware('throttle:10,1');
|
||||
Route::post('/check-availability', [Elytra\SubdomainController::class, 'checkAvailability'])
|
||||
->middleware('throttle:20,1'); // Max 20 availability checks per minute
|
||||
->middleware('throttle:25,1');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user