2015-08-30 13:22:00 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-25 06:17:45 +01:00
|
|
|
/**
|
|
|
|
* Pony.fm - A community for pony fan music.
|
2018-04-21 06:25:36 +02:00
|
|
|
* Copyright (C) 2015 Feld0
|
2015-10-25 06:17:45 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-02-14 03:34:58 +01:00
|
|
|
namespace App\Http;
|
2015-08-30 13:22:00 +02:00
|
|
|
|
|
|
|
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,
|
2016-09-30 00:26:31 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
protected $middlewareGroups = [
|
|
|
|
'web' => [
|
2021-02-14 03:34:58 +01:00
|
|
|
\App\Http\Middleware\EncryptCookies::class,
|
2016-09-30 00:26:31 +02:00
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
2016-09-30 01:56:25 +02:00
|
|
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2021-02-14 03:34:58 +01:00
|
|
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\App\Http\Middleware\DisabledAccountCheck::class,
|
2016-09-30 00:26:31 +02:00
|
|
|
]
|
2015-08-30 13:22:00 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware = [
|
2021-02-14 03:34:58 +01:00
|
|
|
'auth' => \App\Http\Middleware\Authenticate::class,
|
2016-09-30 01:56:25 +02:00
|
|
|
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
2021-02-14 03:34:58 +01:00
|
|
|
'auth.oauth' => \App\Http\Middleware\AuthenticateOAuth::class,
|
|
|
|
'can' => \App\Http\Middleware\Authorize::class,
|
|
|
|
'json-exceptions' => \App\Http\Middleware\JsonExceptions::class,
|
|
|
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
2017-11-28 08:00:11 +01:00
|
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
|
|
|
'cors' => \Barryvdh\Cors\HandleCors::class,
|
2015-08-30 13:22:00 +02:00
|
|
|
];
|
|
|
|
}
|