<?php

use Illuminate\Support\Facades\Route;

// Semua route web → serve React SPA (index.html)
// Kecuali /api/* dan /sanctum/* yang sudah ditangani Laravel
Route::get('/{any}', function () {
    return file_get_contents(public_path('index.html'));
})->where('any', '.*');

require __DIR__.'/auth.php';
