From 87e9d5e82a37bb1ee72a0bdbe8d6b94422fdd5da Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 25 Dec 2020 15:09:02 -0800 Subject: [PATCH] Throttle pulls --- 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 62cad21c1..a00938f55 100644 --- a/routes/api-client.php +++ b/routes/api-client.php @@ -66,7 +66,7 @@ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateServ Route::post('/delete', 'Servers\FileController@delete'); Route::post('/create-folder', 'Servers\FileController@create'); Route::post('/chmod', 'Servers\FileController@chmod'); - Route::post('/pull', 'Servers\FileController@pull'); + Route::post('/pull', 'Servers\FileController@pull')->middleware(['throttle:10,5']); Route::get('/upload', 'Servers\FileUploadController'); });