mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
First attempt
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
e2adaa7da6
commit
bc88aed6ee
|
@ -37,8 +37,8 @@ class Kernel extends HttpKernel
|
||||||
'web' => [
|
'web' => [
|
||||||
\App\Http\Middleware\EncryptCookies::class,
|
\App\Http\Middleware\EncryptCookies::class,
|
||||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
|
||||||
\App\Http\Middleware\CheckForSetup::class,
|
\App\Http\Middleware\CheckForSetup::class,
|
||||||
|
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||||
\App\Http\Middleware\CheckLocale::class,
|
\App\Http\Middleware\CheckLocale::class,
|
||||||
\App\Http\Middleware\CheckUserIsActivated::class,
|
\App\Http\Middleware\CheckUserIsActivated::class,
|
||||||
\App\Http\Middleware\CheckForTwoFactor::class,
|
\App\Http\Middleware\CheckForTwoFactor::class,
|
||||||
|
@ -46,19 +46,13 @@ class Kernel extends HttpKernel
|
||||||
\App\Http\Middleware\AssetCountForSidebar::class,
|
\App\Http\Middleware\AssetCountForSidebar::class,
|
||||||
\Illuminate\Session\Middleware\AuthenticateSession::class,
|
\Illuminate\Session\Middleware\AuthenticateSession::class,
|
||||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'api' => [
|
'api' => [
|
||||||
'auth:api',
|
'auth:api',
|
||||||
\App\Http\Middleware\CheckForSetup::class,
|
|
||||||
\App\Http\Middleware\CheckLocale::class,
|
\App\Http\Middleware\CheckLocale::class,
|
||||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||||
],
|
],
|
||||||
|
|
||||||
'health' => [
|
|
||||||
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -538,7 +538,7 @@ Route::group(['middleware' => 'web'], function () {
|
||||||
|
|
||||||
|
|
||||||
// Use the
|
// Use the
|
||||||
Route::group(['middleware' => 'health'], function () {
|
Route::group(['middleware' => 'guest'], function () {
|
||||||
Route::get(
|
Route::get(
|
||||||
'/health',
|
'/health',
|
||||||
[HealthController::class, 'get']
|
[HealthController::class, 'get']
|
||||||
|
|
Loading…
Reference in a new issue