feat: 后端挂载音频资源文件/api/res/sounds
This commit is contained in:
5
main.py
5
main.py
@@ -146,6 +146,11 @@ def main():
|
|||||||
StaticFiles(directory=str(Path.cwd() / "res/images/materials")),
|
StaticFiles(directory=str(Path.cwd() / "res/images/materials")),
|
||||||
name="materials",
|
name="materials",
|
||||||
)
|
)
|
||||||
|
app.mount(
|
||||||
|
"/api/res/sounds",
|
||||||
|
StaticFiles(directory=str(Path.cwd() / "res/sounds")),
|
||||||
|
name="sounds",
|
||||||
|
)
|
||||||
|
|
||||||
async def run_server():
|
async def run_server():
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user