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