140 - Fix the fallback message describing a nonexistent React frontend

This commit is contained in:
myrmidex 2026-08-14 21:41:45 +02:00
parent 3c86b0637e
commit 1b95e9f8aa
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@
Route::fallback(function () { Route::fallback(function () {
return response()->json([ return response()->json([
'message' => 'This is the FFR API backend. Use /api/v1/* endpoints or check the React frontend.', 'message' => 'Not found. The FFR interface is at /dashboard; API endpoints are under /api/v1.',
'api_base' => '/api/v1', 'api_base' => '/api/v1',
], 404); ], 404);
}); });

View file

@ -43,7 +43,7 @@ public function test_fallback_route_returns_api_message(): void
$response = $this->get('/nonexistent-route'); $response = $this->get('/nonexistent-route');
$response->assertStatus(404); $response->assertStatus(404);
$response->assertJson([ $response->assertJson([
'message' => 'This is the FFR API backend. Use /api/v1/* endpoints or check the React frontend.', 'message' => 'Not found. The FFR interface is at /dashboard; API endpoints are under /api/v1.',
'api_base' => '/api/v1', 'api_base' => '/api/v1',
]); ]);
} }