feat: 后端挂载音频资源文件/api/res/sounds

This commit is contained in:
DLmaster361
2025-09-21 01:16:12 +08:00
parent a16f9b2da4
commit 981c3a8624

View File

@@ -146,6 +146,11 @@ def main():
StaticFiles(directory=str(Path.cwd() / "res/images/materials")),
name="materials",
)
app.mount(
"/api/res/sounds",
StaticFiles(directory=str(Path.cwd() / "res/sounds")),
name="sounds",
)
async def run_server():