json(['status' => 'ok', 'service' => 'FFR API Backend']); }); // For any unmatched routes, return a JSON response indicating this is an API backend Route::fallback(function () { return response()->json([ 'message' => 'This is the FFR API backend. Use /api/v1/* endpoints or check the React frontend.', 'api_base' => '/api/v1' ], 404); });