fedi-feed-router/backend/routes/web.php
myrmidex bac0ae12d9 Fix tests
+ remove old routes
2025-08-04 22:10:30 +02:00

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);
});