mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
🩹 — Fix a relative path bug
This commit is contained in:
parent
0cef533a8b
commit
6cb2ccfa3b
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
@ -33,7 +34,10 @@ def get_application() -> FastAPI:
|
|||
)
|
||||
appli.include_router(routes.api, prefix="/api")
|
||||
appli.include_router(routes.views)
|
||||
appli.mount("/static", StaticFiles(directory="argos/server/static"), name="static")
|
||||
|
||||
static_dir = os.path.join(os.path.dirname(__file__), "static")
|
||||
|
||||
appli.mount("/static", StaticFiles(directory=static_dir), name="static")
|
||||
return appli
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue