The new L5.5 route->view method means we can get rid of the static routes controller and still cache our routes file
This commit is contained in:
parent
b73ad5f6af
commit
2c9d43a6b8
2 changed files with 2 additions and 18 deletions
|
@ -1,16 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
|
||||||
|
|
||||||
class StaticRoutesController extends Controller
|
|
||||||
{
|
|
||||||
public function projects()
|
|
||||||
{
|
|
||||||
return view('projects');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function colophon()
|
|
||||||
{
|
|
||||||
return view('colophon');
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -15,10 +15,10 @@ Route::group(['domain' => config('url.longurl')], function () {
|
||||||
Route::get('/', 'NotesController@index');
|
Route::get('/', 'NotesController@index');
|
||||||
|
|
||||||
//Static project page
|
//Static project page
|
||||||
Route::get('projects', 'StaticRoutesController@projects');
|
Route::view('projects', 'projects');
|
||||||
|
|
||||||
//Static colophon page
|
//Static colophon page
|
||||||
Route::get('colophon', 'StaticRoutesController@colophon');
|
Route::view('colophon', 'colophon');
|
||||||
|
|
||||||
//The login routes to get authe'd for admin
|
//The login routes to get authe'd for admin
|
||||||
Route::get('login', 'AuthController@showLogin')->name('login');
|
Route::get('login', 'AuthController@showLogin')->name('login');
|
||||||
|
|
Loading…
Add table
Reference in a new issue