diff --git a/backend/main.py b/backend/main.py index 63b71f5..608fca1 100644 --- a/backend/main.py +++ b/backend/main.py @@ -16,6 +16,7 @@ from fastapi.staticfiles import StaticFiles from pydantic import BaseModel STATIC_DIR = Path("frontend/dist") +PUBLIC_DIR = Path("public") SESSION_COOKIE = "jellomator_session" DB_HOST = os.getenv("DB_HOST", "mariadb") DB_PORT = int(os.getenv("DB_PORT", "3306")) @@ -295,6 +296,8 @@ def update_link( if STATIC_DIR.exists(): app.mount("/assets", StaticFiles(directory=STATIC_DIR / "assets"), name="assets") +if PUBLIC_DIR.exists(): + app.mount("/static", StaticFiles(directory=PUBLIC_DIR), name="public") @app.get("/{path:path}") diff --git a/index.html b/index.html index c0689da..5ee8cb3 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,9 @@ - - - + + +