diff options
Diffstat (limited to 'api/docs.php')
-rw-r--r-- | api/docs.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/api/docs.php b/api/docs.php index 1c9429b..89e9216 100644 --- a/api/docs.php +++ b/api/docs.php @@ -13,12 +13,10 @@ if (isset($select)) { $id = $select; $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/docs/" . $select . ".json"), true); } else { - header("Location: /-/docs"); - die(); + die("Not found"); } } else { - header("Location: /-/docs"); - die(); + die("Not set"); } if ($json_object["content"]) $data["contents"] = $json_object["content"]; |