summaryrefslogtreecommitdiff
path: root/api/get_app_css.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-03-27 21:29:24 +0200
committerMinteck <contact@minteck.org>2022-03-27 21:29:24 +0200
commit226516aca48e97d3dc4e4df213bc2023e64b1afd (patch)
tree60fb4f24b75b120e7e5b0e149069b16367c48aa0 /api/get_app_css.php
downloadargon-226516aca48e97d3dc4e4df213bc2023e64b1afd.tar.gz
argon-226516aca48e97d3dc4e4df213bc2023e64b1afd.tar.bz2
argon-226516aca48e97d3dc4e4df213bc2023e64b1afd.zip
Initial commit
Diffstat (limited to 'api/get_app_css.php')
-rw-r--r--api/get_app_css.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/api/get_app_css.php b/api/get_app_css.php
new file mode 100644
index 0000000..005c7ef
--- /dev/null
+++ b/api/get_app_css.php
@@ -0,0 +1,14 @@
+<?php
+
+header("Content-Type: application/json");
+
+$files = scandir($_SERVER['DOCUMENT_ROOT'] . "/css");
+$js = [];
+
+foreach ($files as $file) {
+ if (!str_starts_with($file, ".")) {
+ $js[] = "/css/" . $file;
+ }
+}
+
+die(json_encode($js)); \ No newline at end of file