summaryrefslogtreecommitdiff
path: root/api/get_app_js.php
blob: 22da13f511eebfbb3ba2e4d27f1f43a9183fe1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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));