Throttle pulls

This commit is contained in:
Dane Everitt 2020-12-25 15:09:02 -08:00
parent 70afc51c9e
commit 87e9d5e82a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -66,7 +66,7 @@ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateServ
Route::post('/delete', 'Servers\FileController@delete'); Route::post('/delete', 'Servers\FileController@delete');
Route::post('/create-folder', 'Servers\FileController@create'); Route::post('/create-folder', 'Servers\FileController@create');
Route::post('/chmod', 'Servers\FileController@chmod'); 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'); Route::get('/upload', 'Servers\FileUploadController');
}); });