summaryrefslogtreecommitdiff
path: root/api/get_app_css.php
blob: 005c7efc45b1b5f1031313681189eb18e32867b0 (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'] . "/css");
$js = [];

foreach ($files as $file) {
    if (!str_starts_with($file, ".")) {
        $js[] = "/css/" . $file;
    }
}

die(json_encode($js));