test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit 00bf7d1b3f - Show all commits
-4
View File
@@ -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")