From 63d8cd4f3facc07a7b117c0f8cb6f3b14ef0b702 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 9 Apr 2020 22:09:01 -0700 Subject: [PATCH] Throttle backups to two per 10 minute interval --- routes/api-client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api-client.php b/routes/api-client.php index 5ad045801..3d0971c10 100644 --- a/routes/api-client.php +++ b/routes/api-client.php @@ -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');