Remove docs-styles path handling from static file routing
This commit is contained in:
parent
0f9c8dabb5
commit
84e7a8e2a6
1 changed files with 0 additions and 2 deletions
|
@ -16,8 +16,6 @@ if (str_starts_with($file, 'styles/')) {
|
||||||
$filePath = $customBasePath . 'custom/' . $file;
|
$filePath = $customBasePath . 'custom/' . $file;
|
||||||
} elseif (str_starts_with($file, 'default-styles/')) {
|
} elseif (str_starts_with($file, 'default-styles/')) {
|
||||||
$filePath = $basePath . 'default/' . substr($file, 15); // Remove 'default-styles/' prefix
|
$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 {
|
} else {
|
||||||
http_response_code(404);
|
http_response_code(404);
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue