aboutsummaryrefslogtreecommitdiff
path: root/api/pluralkit/system
diff options
context:
space:
mode:
Diffstat (limited to 'api/pluralkit/system')
-rw-r--r--api/pluralkit/system/index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/pluralkit/system/index.php b/api/pluralkit/system/index.php
new file mode 100644
index 0000000..a8fda5c
--- /dev/null
+++ b/api/pluralkit/system/index.php
@@ -0,0 +1,5 @@
+<?php
+
+$config = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/pluralkit.json"), true);
+header("Content-Type: application/json");
+die(file_get_contents("https://api.pluralkit.me/v2/systems/$config[system]")); \ No newline at end of file