mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 05:31:51 +09:00
[Enhance] 정적 파일 확장자 목록에 '.md' 및 '.txt' 추가
This commit is contained in:
parent
5edab9244c
commit
87d5b0209c
1 changed files with 2 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ class AddonBase:
|
||||||
static_extensions = [
|
static_extensions = [
|
||||||
'.js', '.css', '.woff2', '.woff', '.ttf', '.otf', '.svg',
|
'.js', '.css', '.woff2', '.woff', '.ttf', '.otf', '.svg',
|
||||||
'.png', '.jpg', '.jpeg', '.gif', '.webp', '.ico', '.bmp',
|
'.png', '.jpg', '.jpeg', '.gif', '.webp', '.ico', '.bmp',
|
||||||
'.tiff', '.tif', '.webm', '.mp4', '.avi', '.mov', '.pdf'
|
'.tiff', '.tif', '.webm', '.mp4', '.avi', '.mov', '.pdf', '.md',
|
||||||
|
'.txt', '.csv'
|
||||||
]
|
]
|
||||||
|
|
||||||
if any(path.endswith(ext) for ext in static_extensions):
|
if any(path.endswith(ext) for ext in static_extensions):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue