From 65ec8cd18aaf1b915abebff646be32d86d1a79e1 Mon Sep 17 00:00:00 2001 From: Vari Date: Sat, 24 Feb 2024 15:40:00 +0100 Subject: [PATCH] Acces Logger fixing --- dist/app/Http/Kernel.php | 1 + dist/routes/api.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/app/Http/Kernel.php b/dist/app/Http/Kernel.php index cb96dbf..aa9e608 100644 --- a/dist/app/Http/Kernel.php +++ b/dist/app/Http/Kernel.php @@ -45,6 +45,7 @@ class Kernel extends HttpKernel 'api' => [ \Illuminate\Routing\Middleware\ThrottleRequests::class.':api', \Illuminate\Routing\Middleware\SubstituteBindings::class, + AccessLogger::class, ], 'api.session' => [ diff --git a/dist/routes/api.php b/dist/routes/api.php index 7025469..0734448 100644 --- a/dist/routes/api.php +++ b/dist/routes/api.php @@ -19,6 +19,7 @@ Route::get('patch/battleye', [PatchController::class, 'getBattleyePatch']); }); + Route::fallback(function () { return response('route not found', 404); -}); \ No newline at end of file +})->middleware('api.session'); \ No newline at end of file