2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
|
|
|
|
class Kernel extends HttpKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The application's global HTTP middleware stack.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middleware = [
|
|
|
|
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
|
|
|
\Pterodactyl\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
2017-02-01 19:31:24 +00:00
|
|
|
|
2016-01-21 03:39:02 +00:00
|
|
|
\Pterodactyl\Http\Middleware\LanguageMiddleware::class,
|
2017-02-01 19:10:28 +00:00
|
|
|
\Fideloper\Proxy\TrustProxies::class,
|
2015-12-06 18:58:49 +00:00
|
|
|
];
|
|
|
|
|
2016-09-03 21:09:00 +00:00
|
|
|
/**
|
|
|
|
* The application's route middleware groups.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middlewareGroups = [
|
|
|
|
'web' => [
|
|
|
|
\Pterodactyl\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\Pterodactyl\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
|
|
|
],
|
|
|
|
'api' => [
|
|
|
|
'throttle:60,1',
|
|
|
|
'bindings',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
|
2015-12-06 18:58:49 +00:00
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2016-09-03 21:09:00 +00:00
|
|
|
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
|
2015-12-06 18:58:49 +00:00
|
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
|
|
|
'guest' => \Pterodactyl\Http\Middleware\RedirectIfAuthenticated::class,
|
2016-01-08 20:08:29 +00:00
|
|
|
'server' => \Pterodactyl\Http\Middleware\CheckServer::class,
|
2015-12-06 18:58:49 +00:00
|
|
|
'admin' => \Pterodactyl\Http\Middleware\AdminAuthenticate::class,
|
2017-01-27 21:34:46 +00:00
|
|
|
'daemon' => \Pterodactyl\Http\Middleware\DaemonAuthenticate::class,
|
2016-01-12 06:05:44 +00:00
|
|
|
'csrf' => \Pterodactyl\Http\Middleware\VerifyCsrfToken::class,
|
2016-09-03 21:09:00 +00:00
|
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
|
|
|
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
|
|
|
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2017-03-31 10:19:44 +00:00
|
|
|
'recaptcha' => \Pterodactyl\Http\Middleware\VerifyReCaptcha::class,
|
2015-12-06 18:58:49 +00:00
|
|
|
];
|
|
|
|
}
|