aboutsummaryrefslogtreecommitdiff
path: root/api/pluralkit/system/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-06 19:56:46 +0200
committerMinteck <contact@minteck.org>2022-04-06 19:56:46 +0200
commit01632caf82659e4e8025b4fad91ff7388b369770 (patch)
tree18127ad9abbd877dc4c6731040fa12eea2982497 /api/pluralkit/system/index.php
parent86bb68d8e7e9c2158939810b9343c7824886d6f4 (diff)
downloadcloudsdale-01632caf82659e4e8025b4fad91ff7388b369770.tar.gz
cloudsdale-01632caf82659e4e8025b4fad91ff7388b369770.tar.bz2
cloudsdale-01632caf82659e4e8025b4fad91ff7388b369770.zip
Public API is complete
Diffstat (limited to 'api/pluralkit/system/index.php')
-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