aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-07-28 23:44:17 +0100
committerFrankie B <frankieraybrown@gmail.com>2023-07-29 18:10:50 +0100
commit7e4864f627fe5783be3ee4d81c2e0bc7e70063b6 (patch)
tree6d88e170c79c2c6ae34865c9ef44345c0832ef86 /routes
parentf547f58d0d9de033450b2a0bbc2ef5f028f76ec8 (diff)
Update routes
Diffstat (limited to 'routes')
-rw-r--r--routes/web.php21
1 files changed, 15 insertions, 6 deletions
diff --git a/routes/web.php b/routes/web.php
index 36e9d70..f2ca94c 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -14,23 +14,23 @@ use Illuminate\Support\Facades\Route;
*/
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 @@ Route::post('/guestbook', 'App\Http\Controllers\GuestbookController@guestbookpos
->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 @@ Route::get('/admin/guestbook/delete', function () {
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")