fix: potentially fixed being unable to create routes on frontend due to rate limiting

This commit is contained in:
Naterfute
2026-02-24 04:50:40 -08:00
parent b2a13112eb
commit 9c79e57de2

View File

@@ -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');
});
});