mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-09 04:27:47 +08:00
update middlewares
This commit is contained in:
parent
ececb3486b
commit
5c4afe8f80
@ -14,7 +14,8 @@ class Kernel extends HttpKernel
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $middleware = [
|
protected $middleware = [
|
||||||
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
|
\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
||||||
|
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
||||||
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
|
\Illuminate\Foundation\Http\Middleware\TrimStrings::class,
|
||||||
\App\Http\Middleware\ConvertEmptyStringsToNull::class,
|
\App\Http\Middleware\ConvertEmptyStringsToNull::class,
|
||||||
\App\Http\Middleware\DetectLanguagePrefer::class,
|
\App\Http\Middleware\DetectLanguagePrefer::class,
|
||||||
@ -34,11 +35,11 @@ class Kernel extends HttpKernel
|
|||||||
\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class,
|
\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::class,
|
||||||
\App\Http\Middleware\EnforceEverGreen::class,
|
\App\Http\Middleware\EnforceEverGreen::class,
|
||||||
\App\Http\Middleware\RedirectToSetup::class,
|
\App\Http\Middleware\RedirectToSetup::class,
|
||||||
'bindings',
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
'api' => [
|
||||||
'bindings',
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
'authorize' => [
|
'authorize' => [
|
||||||
@ -58,7 +59,6 @@ class Kernel extends HttpKernel
|
|||||||
*/
|
*/
|
||||||
protected $routeMiddleware = [
|
protected $routeMiddleware = [
|
||||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||||
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
|
|
||||||
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
||||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||||
'role' => \App\Http\Middleware\CheckRole::class,
|
'role' => \App\Http\Middleware\CheckRole::class,
|
||||||
|
Loading…
Reference in New Issue
Block a user