1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/app/Http/Kernel.php

40 lines
1.2 KiB
PHP
Raw Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Http;
2015-03-12 01:44:39 +01:00
use Illuminate\Foundation\Http\Kernel as HttpKernel;
2017-01-30 17:05:31 +01:00
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
'Illuminate\Cookie\Middleware\EncryptCookies',
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
'App\Http\Middleware\VerifyCsrfToken',
2015-04-22 21:21:04 +02:00
'App\Http\Middleware\DuplicateSubmissionCheck',
2017-01-30 17:05:31 +01:00
'App\Http\Middleware\QueryLogging',
2016-09-11 16:30:23 +02:00
'App\Http\Middleware\StartupCheck',
2017-01-30 17:05:31 +01:00
];
2015-03-12 01:44:39 +01:00
2017-01-30 17:05:31 +01:00
/**
* The application's route middleware.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => 'App\Http\Middleware\Authenticate',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
'permissions.required' => 'App\Http\Middleware\PermissionsRequired',
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
2015-04-02 15:06:16 +02:00
'api' => 'App\Http\Middleware\ApiCheck',
2017-03-06 10:25:01 +01:00
'cors' => '\App\Http\Middleware\Cors',
2017-01-30 17:05:31 +01:00
];
2015-03-12 01:44:39 +01:00
}