Docs
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user