Remove docs-styles path handling from static file routing

This commit is contained in:
Ruben 2025-10-03 12:39:25 +02:00
parent 0f9c8dabb5
commit 84e7a8e2a6

View file

@ -16,8 +16,6 @@ if (str_starts_with($file, 'styles/')) {
$filePath = $customBasePath . 'custom/' . $file;
} elseif (str_starts_with($file, 'default-styles/')) {
$filePath = $basePath . 'default/' . substr($file, 15); // Remove 'default-styles/' prefix
} elseif (str_starts_with($file, 'docs-styles/')) {
$filePath = $basePath . 'default/docs/styles/' . substr($file, 12); // Remove 'docs-styles/' prefix
} else {
http_response_code(404);
exit;