mirror of
https://github.com/sigmasternchen/useful-api.org
synced 2025-03-15 16:08:55 +00:00
16 lines
317 B
PHP
16 lines
317 B
PHP
![]() |
<?php
|
||
|
|
||
|
const ROOT = __DIR__;
|
||
|
|
||
|
define("MAINTENANCE_MODE", require(ROOT . "/maintenance.php"));
|
||
|
|
||
|
if (MAINTENANCE_MODE) {
|
||
|
require(ROOT . "./templates/maintenance.php");
|
||
|
} else {
|
||
|
$router = require(ROOT . "/router/Router.php");
|
||
|
|
||
|
(require(ROOT . "/controllers/routes.php"))($router);
|
||
|
|
||
|
$router->execute();
|
||
|
}
|