From 38cd5614c84a32896f1bcad0d7df8fdc19898f28 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 1 Sep 2019 18:44:38 -0600 Subject: [PATCH] Update web routes --- routes/web.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/web.php b/routes/web.php index 141fac2dd..a84dc9318 100644 --- a/routes/web.php +++ b/routes/web.php @@ -121,6 +121,9 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact 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'); + + Route::post('compose/media/update/{id}', 'MediaController@composeUpdate')->middleware('throttle:maxComposeMediaUpdatesPerHour,60')->middleware('throttle:maxComposeMediaUpdatesPerDay,1440')->middleware('throttle:maxComposeMediaUpdatesPerMonth,43800'); + Route::get('compose/location/search', 'ApiController@composeLocationSearch'); }); Route::group(['prefix' => 'admin'], function () { Route::post('moderate', 'Api\AdminApiController@moderate'); @@ -129,6 +132,9 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact }); Route::get('discover/tags/{hashtag}', 'DiscoverController@showTags'); + Route::get('discover/places', 'PlaceController@directoryHome')->name('discover.places'); + Route::get('discover/places/{id}/{slug}', 'PlaceController@show'); + Route::get('discover/location/country/{country}', 'PlaceController@directoryCities'); Route::group(['prefix' => 'i'], function () { Route::redirect('/', '/');