<?php

use Illuminate\Support\Facades\Route;

// This app is an API backend; the website is the React frontend.
// Redirect the root to the frontend so hitting the API host isn't confusing.
Route::get('/', function () {
    return redirect()->away(env('FRONTEND_URL', 'http://localhost:5173'));
});
