2016-01-08 09:01:21 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FireflyIII\Http;
|
2015-02-05 21:39:52 -06:00
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
|
|
|
|
2015-02-06 12:33:31 -06:00
|
|
|
class Kernel extends HttpKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The application's global HTTP middleware stack.
|
|
|
|
*
|
2016-01-08 09:01:21 -06:00
|
|
|
* These middleware are run during every request to your application.
|
|
|
|
*
|
2015-02-06 12:33:31 -06:00
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $middleware
|
|
|
|
= [
|
2016-01-08 09:01:21 -06:00
|
|
|
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
2015-02-06 12:33:31 -06:00
|
|
|
];
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2015-02-06 12:33:31 -06:00
|
|
|
/**
|
2016-01-08 09:01:21 -06:00
|
|
|
* The application's route middleware groups.
|
2015-02-06 12:33:31 -06:00
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
2016-01-08 09:01:21 -06:00
|
|
|
protected $middlewareGroups
|
2015-02-06 12:33:31 -06:00
|
|
|
= [
|
2016-01-09 00:46:11 -06:00
|
|
|
'web' => [
|
2016-01-08 09:36:41 -06:00
|
|
|
\FireflyIII\Http\Middleware\EncryptCookies::class,
|
2016-01-08 09:01:21 -06:00
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\FireflyIII\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
],
|
2016-01-09 00:46:11 -06:00
|
|
|
'web-auth' => [
|
|
|
|
\FireflyIII\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\FireflyIII\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\FireflyIII\Http\Middleware\Authenticate::class,
|
|
|
|
],
|
|
|
|
'web-auth-range' => [
|
|
|
|
\FireflyIII\Http\Middleware\EncryptCookies::class,
|
|
|
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
|
|
|
\Illuminate\Session\Middleware\StartSession::class,
|
|
|
|
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
|
|
|
\FireflyIII\Http\Middleware\VerifyCsrfToken::class,
|
|
|
|
\FireflyIII\Http\Middleware\Authenticate::class,
|
|
|
|
\FireflyIII\Http\Middleware\Range::class,
|
|
|
|
],
|
2015-03-28 00:19:09 -05:00
|
|
|
|
2016-01-08 09:01:21 -06:00
|
|
|
'api' => [
|
|
|
|
'throttle:60,1',
|
|
|
|
],
|
2015-02-06 12:33:31 -06:00
|
|
|
];
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2016-01-08 09:01:21 -06:00
|
|
|
/**
|
|
|
|
* The application's route middleware.
|
|
|
|
*
|
|
|
|
* These middleware may be assigned to groups or used individually.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $routeMiddleware
|
|
|
|
= [
|
|
|
|
'auth' => \FireflyIII\Http\Middleware\Authenticate::class,
|
|
|
|
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
|
|
|
'guest' => \FireflyIII\Http\Middleware\RedirectIfAuthenticated::class,
|
|
|
|
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
|
|
|
'range' => \FireflyIII\Http\Middleware\Range::class,
|
|
|
|
];
|
2015-02-05 21:39:52 -06:00
|
|
|
}
|