diff options
| author | winter | 2025-01-17 17:40:58 +0000 |
|---|---|---|
| committer | winter | 2025-01-17 17:40:58 +0000 |
| commit | 8d7727e6d1a8f69dbe43390a3ef2f7a7880c42bc (patch) | |
| tree | 87811f846c136a45268d23d7436cb689094468a2 /routes | |
| parent | 3bd6cf6cd2eda9aa95c734df58af11bbae57ce04 (diff) | |
add a loading indicator
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/static.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/static.php b/routes/static.php index 2850d8f..0944014 100644 --- a/routes/static.php +++ b/routes/static.php @@ -13,6 +13,8 @@ Router::getInstance()->mount('/static/:path', function (array $args) { $fileExtension = $fileExtension[count($fileExtension) - 1]; header('Content-Type: ' . match ($fileExtension) { 'css' => 'text/css', + 'js' => 'application/javascript', + 'svg' => 'image/svg+xml', default => mime_content_type($realPath) }); echo file_get_contents($realPath); |
