From 209356b8ade1920b50d1d3a1a5e121c6623d167b Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 11 Nov 2022 23:47:49 +0100 Subject: Update --- api/docs.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'api/docs.php') 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"]; -- cgit