Remove route closures to allow route caching
This commit is contained in:
parent
4024b18e65
commit
37f701b105
6 changed files with 48 additions and 17 deletions
13
app/Http/Controllers/Admin/HomeController.php
Normal file
13
app/Http/Controllers/Admin/HomeController.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class HomeController extends Controller
|
||||
{
|
||||
public function welcome()
|
||||
{
|
||||
return view('welcome', ['name' => config('admin.user')]);
|
||||
}
|
||||
}
|
|
@ -6,6 +6,11 @@ use Illuminate\Http\Request;
|
|||
|
||||
class AuthController extends Controller
|
||||
{
|
||||
public function showLogin()
|
||||
{
|
||||
return view('login');
|
||||
}
|
||||
|
||||
/**
|
||||
* Log in a user, set a sesion variable, check credentials against
|
||||
* the .env file.
|
||||
|
|
18
app/Http/Controllers/StaticRoutesController.php
Normal file
18
app/Http/Controllers/StaticRoutesController.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class StaticRoutesController extends Controller
|
||||
{
|
||||
public function projects()
|
||||
{
|
||||
return view('projects');
|
||||
}
|
||||
|
||||
public function colophon()
|
||||
{
|
||||
return view('colophon');
|
||||
}
|
||||
}
|
|
@ -11,6 +11,11 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
|
|||
|
||||
class WebMentionsController extends Controller
|
||||
{
|
||||
public function get()
|
||||
{
|
||||
return view('webmention-endpoint');
|
||||
}
|
||||
|
||||
/**
|
||||
* Receive and process a webmention.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue