26 lines
815 B
PHP
26 lines
815 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Note: This Laravel backend now serves as an API for a separate React frontend.
|
|
| All UI routes are handled by the React application.
|
|
|
|
|
*/
|
|
|
|
// Simple API health check route
|
|
Route::get('/health', function () {
|
|
return response()->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);
|
|
});
|