diff --git a/main.py b/main.py
index db6a575..00b0a4a 100644
--- a/main.py
+++ b/main.py
@@ -193,7 +193,7 @@ async def upload_file(file_key: str, file: bytes = File(...), chunk_index: int =
return {'code': 200}
-@app.get('/file/merge/{file_key}')
+@app.get('/file/merge/{file_key}/')
async def merge_chunks(file_key: str, file_name: str, total_chunks: int):
return {'code': 200, 'data': await storage.merge_chunks(file_key, file_name, total_chunks)}
diff --git a/settings.py b/settings.py
index b7134e0..be5e825 100644
--- a/settings.py
+++ b/settings.py
@@ -18,7 +18,7 @@ class Settings:
# Sqlite套接字
DATABASE_URL = config('DATABASE_URL', cast=str, default=f"sqlite+aiosqlite:///{DATABASE_FILE}")
# 数据存储文件夹,文件就不暴露在静态资源里面了
- DATA_ROOT = './data/' + config('DATA_ROOT', cast=str, default=f"static")
+ DATA_ROOT = config('DATA_ROOT', cast=str, default=f"./data/static")
# 静态文件夹URL
STATIC_URL = config('STATIC_URL', cast=str, default="/static")
# 开启上传
@@ -42,7 +42,7 @@ class Settings:
# 管理密码
ADMIN_PASSWORD = config('ADMIN_PASSWORD', cast=str, default=uuid.uuid4().hex)
# 文件大小限制,默认10MB
- FILE_SIZE_LIMIT = config('FILE_SIZE_LIMIT', cast=int, default=10) * 1024 * 1024
+ FILE_SIZE_LIMIT = config('FILE_SIZE_LIMIT', cast=int, default=10 * 1024 * 1024)
# 网站标题
TITLE = config('TITLE', cast=str, default="文件快递柜")
# 网站描述
diff --git a/templates/index.html b/templates/index.html
index b6c3c8d..846a4eb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -11,7 +11,7 @@
-
+