From d95fa27e618721e7ed524a4cc7cda4b16c913cad Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 17 Jul 2019 23:38:29 -0600 Subject: [PATCH] Update routes --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 8db7d3fb..d3ae09fe 100644 --- a/routes/web.php +++ b/routes/web.php @@ -119,7 +119,7 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::post('collection/item', 'CollectionController@storeId'); Route::get('collection/{id}', 'CollectionController@get'); Route::post('collection/{id}', 'CollectionController@store'); - Route::delete('collection/{id}', 'CollectionController@delete'); + Route::delete('collection/{id}', 'CollectionController@delete')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800'); Route::post('collection/{id}/publish', 'CollectionController@publish')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800'); Route::get('profile/collections/{id}', 'CollectionController@getUserCollections'); });