From e3cfd8170f2bd2b669e069601e6f2d1d3fd9e984 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 19 Jun 2019 20:55:04 -0600 Subject: [PATCH] Update web routes --- routes/web.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index c82adba3..7a861e46 100644 --- a/routes/web.php +++ b/routes/web.php @@ -27,6 +27,7 @@ Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(functio Route::get('settings/pages', 'AdminController@settingsPages')->name('admin.settings.pages'); Route::get('settings/pages/edit', 'PageController@edit')->name('admin.settings.pages.edit'); Route::post('settings/pages/edit', 'PageController@store'); + Route::post('settings/pages/delete', 'PageController@delete'); Route::post('settings/pages/create', 'PageController@generatePage'); Route::get('settings/maintenance', 'AdminController@settingsMaintenance')->name('admin.settings.maintenance'); Route::get('settings/backups', 'AdminController@settingsBackups')->name('admin.settings.backups'); @@ -265,8 +266,8 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact Route::view('fediverse', 'site.fediverse')->name('site.fediverse'); Route::view('open-source', 'site.opensource')->name('site.opensource'); Route::view('banned-instances', 'site.bannedinstances')->name('site.bannedinstances'); - Route::view('terms', 'site.terms')->name('site.terms'); - Route::view('privacy', 'site.privacy')->name('site.privacy'); + Route::get('terms', 'SiteController@terms')->name('site.terms'); + Route::get('privacy', 'SiteController@privacy')->name('site.privacy'); Route::view('platform', 'site.platform')->name('site.platform'); Route::view('language', 'site.language')->name('site.language'); Route::get('contact', 'ContactController@show')->name('site.contact');