mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) Alt Three Services Limited
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Cachet\Http;
|
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
class Kernel extends HttpKernel
|
|
{
|
|
/**
|
|
* The application's global HTTP middleware stack.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $middleware = [
|
|
'Fideloper\Proxy\TrustProxies',
|
|
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
|
|
];
|
|
|
|
/**
|
|
* The application's route middleware.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $routeMiddleware = [
|
|
'admin' => 'CachetHQ\Cachet\Http\Middleware\Admin',
|
|
'can' => 'Illuminate\Auth\Middleware\Authorize',
|
|
'auth' => 'CachetHQ\Cachet\Http\Middleware\Authenticate',
|
|
'auth.api' => 'CachetHQ\Cachet\Http\Middleware\ApiAuthentication',
|
|
'guest' => 'CachetHQ\Cachet\Http\Middleware\RedirectIfAuthenticated',
|
|
'localize' => 'CachetHQ\Cachet\Http\Middleware\Localize',
|
|
'ready' => 'CachetHQ\Cachet\Http\Middleware\ReadyForUse',
|
|
'setup' => 'CachetHQ\Cachet\Http\Middleware\SetupAlreadyCompleted',
|
|
'subscribers' => 'CachetHQ\Cachet\Http\Middleware\SubscribersConfigured',
|
|
'throttle' => 'AltThree\Throttle\ThrottlingMiddleware',
|
|
];
|
|
}
|