Update routes
This commit is contained in:
		
					parent
					
						
							
								54e4818722
							
						
					
				
			
			
				commit
				
					
						e67ba6de99
					
				
			
		
					 1 changed files with 15 additions and 6 deletions
				
			
		|  | @ -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") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frankie B
				Frankie B