Throttle backups to two per 10 minute interval

This commit is contained in:
Dane Everitt 2020-04-09 22:09:01 -07:00
parent c1a7e4ebe1
commit 63d8cd4f3f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -89,7 +89,7 @@ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateServ
Route::group(['prefix' => '/backups'], function () {
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}/download', 'Servers\DownloadBackupController');
Route::delete('/{backup}', 'Servers\BackupController@delete');