From 00bf7d1b3fc38bcad8f343dabdfc65cec21f5721 Mon Sep 17 00:00:00 2001 From: lan Date: Tue, 31 Jan 2023 21:29:06 +0800 Subject: [PATCH] =?UTF-8?q?delete:=E6=9A=82=E6=97=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=96=87=E4=BB=B6=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.py b/main.py index d4bfa66..4ff8c46 100644 --- a/main.py +++ b/main.py @@ -31,10 +31,6 @@ async def startup(s: AsyncSession = Depends(get_session)): DATA_ROOT = Path(settings.DATA_ROOT) if not DATA_ROOT.exists(): DATA_ROOT.mkdir(parents=True) -# 本地文件文件夹 -LOCAL_ROOT = Path(settings.LOCAL_ROOT) -if not LOCAL_ROOT.exists(): - LOCAL_ROOT.mkdir(parents=True) # 静态文件夹,这个固定就行了,静态资源都放在这里 app.mount('/static', StaticFiles(directory='./static'), name="static")