summaryrefslogtreecommitdiff
path: root/api/docs.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-11 23:47:49 +0100
committerMinteck <contact@minteck.org>2022-11-11 23:47:49 +0100
commit209356b8ade1920b50d1d3a1a5e121c6623d167b (patch)
tree5301396987d1510f715a0b1c24754873af19e1dc /api/docs.php
parent2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 (diff)
downloadpluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.gz
pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.tar.bz2
pluralconnect-209356b8ade1920b50d1d3a1a5e121c6623d167b.zip
Update
Diffstat (limited to 'api/docs.php')
-rw-r--r--api/docs.php6
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"];