diff options
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); |
