forked from mirror/pixelfed
Update routes
This commit is contained in:
parent
2cb3f8540a
commit
de56ddd7b5
1 changed files with 2 additions and 2 deletions
|
@ -118,9 +118,9 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
|
||||||
Route::get('collection/items/{id}', 'CollectionController@getItems');
|
Route::get('collection/items/{id}', 'CollectionController@getItems');
|
||||||
Route::post('collection/item', 'CollectionController@storeId');
|
Route::post('collection/item', 'CollectionController@storeId');
|
||||||
Route::get('collection/{id}', 'CollectionController@get');
|
Route::get('collection/{id}', 'CollectionController@get');
|
||||||
Route::post('collection/{id}', 'CollectionController@store');
|
Route::post('collection/{id}', 'CollectionController@store')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800');
|
||||||
Route::delete('collection/{id}', 'CollectionController@delete');
|
Route::delete('collection/{id}', 'CollectionController@delete');
|
||||||
Route::post('collection/{id}/publish', 'CollectionController@publish');
|
Route::post('collection/{id}/publish', 'CollectionController@publish')->middleware('throttle:maxCollectionsPerHour,60')->middleware('throttle:maxCollectionsPerDay,1440')->middleware('throttle:maxCollectionsPerMonth,43800');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue