forked from Alex/Pterodactyl-Panel
Throttle backups to two per 10 minute interval
This commit is contained in:
parent
c1a7e4ebe1
commit
63d8cd4f3f
@ -89,7 +89,7 @@ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateServ
|
|||||||
|
|
||||||
Route::group(['prefix' => '/backups'], function () {
|
Route::group(['prefix' => '/backups'], function () {
|
||||||
Route::get('/', 'Servers\BackupController@index');
|
Route::get('/', 'Servers\BackupController@index');
|
||||||
Route::post('/', 'Servers\BackupController@store');
|
Route::post('/', 'Servers\BackupController@store')->middleware('throttle:2,10');
|
||||||
Route::get('/{backup}', 'Servers\BackupController@view');
|
Route::get('/{backup}', 'Servers\BackupController@view');
|
||||||
Route::get('/{backup}/download', 'Servers\DownloadBackupController');
|
Route::get('/{backup}/download', 'Servers\DownloadBackupController');
|
||||||
Route::delete('/{backup}', 'Servers\BackupController@delete');
|
Route::delete('/{backup}', 'Servers\BackupController@delete');
|
||||||
|
Loading…
Reference in New Issue
Block a user