Initial commit
This commit is contained in:
13
public/router.php
Normal file
13
public/router.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* SPA Router - serves index.html for all admin routes
|
||||
*/
|
||||
|
||||
http_response_code(200);
|
||||
|
||||
$indexPath = __DIR__ . '/index.html';
|
||||
if (file_exists($indexPath)) {
|
||||
readfile($indexPath);
|
||||
} else {
|
||||
echo '<!DOCTYPE html><html><body><h1>Application not found</h1></body></html>';
|
||||
}
|
||||
Reference in New Issue
Block a user