group(function () { Route::post('/logout', [AuthController::class, 'logout']); Route::get('/me', [AuthController::class, 'me']); }); Route::any('{any}', function () { return response()->json(['message' => 'Resource not found'], 404); })->where('any', '.*');