Update routes

This commit is contained in:
floppydiskette 2023-07-28 23:44:17 +01:00 committed by Frankie B
parent f547f58d0d
commit 7e4864f627

View file

@ -14,23 +14,23 @@
*/
Route::get('/', function () {
return View::make('pages.home');
return view('pages.home');
});
Route::get('/bookmarks', function () {
return View::make('pages.bookmarks');
return view('pages.bookmarks');
});
Route::get('/projects', function () {
return View::make('pages.projects');
return view('pages.projects');
});
Route::get('/calculators', function () {
return View::make('pages.calculators');
return view('pages.calculators');
});
Route::get('/computers', function () {
return View::make('pages.computers');
return view('pages.computers');
});
Route::get('/guestbook', 'App\Http\Controllers\GuestbookController@guestbook')
@ -40,6 +40,15 @@
->name('guestbookPost')
->middleware('rate_limit');
Route::get('/weather', function () {
return view('pages.weather');
});
Route::get('/music', function () {
return view('pages.music');
});
/* ------------------------------ Admin Routes ------------------------------ */
Route::get('/admin', function () {
if (!auth()->check()) {
return view('errors.no-auth');
@ -64,7 +73,7 @@
if ($entry) {
// Render a confirmation view
return View::make('pages.admin.guestbook-del-confirm', compact('entry'));
return view('pages.admin.guestbook-del-confirm', compact('entry'));
} else {
return view('errors.generic-error')
->with('error', "Entry not found")