140 - Fix the fallback message describing a nonexistent React frontend
This commit is contained in:
parent
3c86b0637e
commit
1b95e9f8aa
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
Route::fallback(function () {
|
||||
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',
|
||||
], 404);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public function test_fallback_route_returns_api_message(): void
|
|||
$response = $this->get('/nonexistent-route');
|
||||
$response->assertStatus(404);
|
||||
$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',
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue