summaryrefslogtreecommitdiff
path: root/api/v1/images.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-11-07 08:04:56 -0500
committerlolcat <will@lolcat.ca>2023-11-07 08:04:56 -0500
commit785452873f0ee0a27fc157b482b7551560f0282d (patch)
tree4c70e240031ed3868425ca683c83ebfd378a9159 /api/v1/images.php
parent64b090ee058953aed2246967332c7f0b6623cd8f (diff)
fix typo
Diffstat (limited to 'api/v1/images.php')
-rw-r--r--api/v1/images.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/api/v1/images.php b/api/v1/images.php
index 34510b4..3072b05 100644
--- a/api/v1/images.php
+++ b/api/v1/images.php
@@ -1,8 +1,14 @@
<?php
+chdir("../../");
header("Content-Type: application/json");
-chdir("../../");
+include "data/config.php";
+if(config::API_ENABLED === false){
+
+ echo json_encode(["status" => "The server administrator disabled the API!"]);
+ return;
+}
include "lib/frontend.php";
$frontend = new frontend();