Updated auth:api in kernel

This commit is contained in:
snipe 2017-01-11 14:54:11 -08:00
parent 1d2489cf9c
commit 9e4a391b8b

View file

@ -42,6 +42,7 @@ class Kernel extends HttpKernel
'api' => [
'throttle:60,1',
'auth:api',
],
];
@ -53,10 +54,9 @@ class Kernel extends HttpKernel
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth' => \Illuminate\Auth\Middleware\Authenticate::class,
'authorize' => \App\Http\Middleware\CheckPermissions::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'bindings' => \Illuminate\Routing\Middleware\SubstitutionBindings::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,