This commit is contained in:
2024-07-13 17:59:54 +02:00
parent 4d25387a47
commit 03da043be3
9 changed files with 106 additions and 6 deletions
+5 -1
View File
@@ -4,7 +4,11 @@ $path = ltrim(str_replace(Config::getBasePath(), "", $_SERVER['REQUEST_URI']), "
try {
if (substr($path, 0, 3) === "api") {
require_once __DIR__ . "/../api/index.php";
if (strpos($path, "docs") === false) {
require_once __DIR__ . "/../$path/index.php";
} else {
Headers::redirect("index.html");
}
} else {
require_once __DIR__ . "/../pages/index.html";
}