]> BookStack Code Mirror - bookstack/blob - app/Http/Kernel.php
Initial commit
[bookstack] / app / Http / Kernel.php
1 <?php
2
3 namespace Oxbow\Http;
4
5 use Illuminate\Foundation\Http\Kernel as HttpKernel;
6
7 class Kernel extends HttpKernel
8 {
9     /**
10      * The application's global HTTP middleware stack.
11      *
12      * @var array
13      */
14     protected $middleware = [
15         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
16         \Oxbow\Http\Middleware\EncryptCookies::class,
17         \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
18         \Illuminate\Session\Middleware\StartSession::class,
19         \Illuminate\View\Middleware\ShareErrorsFromSession::class,
20         \Oxbow\Http\Middleware\VerifyCsrfToken::class,
21     ];
22
23     /**
24      * The application's route middleware.
25      *
26      * @var array
27      */
28     protected $routeMiddleware = [
29         'auth' => \Oxbow\Http\Middleware\Authenticate::class,
30         'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
31         'guest' => \Oxbow\Http\Middleware\RedirectIfAuthenticated::class,
32     ];
33 }