diff options
author | Minteck <contact@minteck.org> | 2022-03-27 21:29:24 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-03-27 21:29:24 +0200 |
commit | 226516aca48e97d3dc4e4df213bc2023e64b1afd (patch) | |
tree | 60fb4f24b75b120e7e5b0e149069b16367c48aa0 /api/get_app_js.php | |
download | argon-226516aca48e97d3dc4e4df213bc2023e64b1afd.tar.gz argon-226516aca48e97d3dc4e4df213bc2023e64b1afd.tar.bz2 argon-226516aca48e97d3dc4e4df213bc2023e64b1afd.zip |
Initial commit
Diffstat (limited to 'api/get_app_js.php')
-rw-r--r-- | api/get_app_js.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/api/get_app_js.php b/api/get_app_js.php new file mode 100644 index 0000000..22da13f --- /dev/null +++ b/api/get_app_js.php @@ -0,0 +1,14 @@ +<?php + +header("Content-Type: application/json"); + +$files = scandir($_SERVER['DOCUMENT_ROOT'] . "/js"); +$js = []; + +foreach ($files as $file) { + if (!str_starts_with($file, ".")) { + $js[] = "/js/" . $file; + } +} + +die(json_encode($js));
\ No newline at end of file |