summaryrefslogtreecommitdiff
path: root/api/v1/music.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/v1/music.php')
-rw-r--r--api/v1/music.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/api/v1/music.php b/api/v1/music.php
index 3c30953..409e6f0 100644
--- a/api/v1/music.php
+++ b/api/v1/music.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();