Skip to content

Commit dd424c4

Browse files
committed
feat: add static file serving for static assets in backend
1 parent 360f1d3 commit dd424c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async def lifespan(_: FastAPI):
4444
)
4545

4646
app.mount("/assets", StaticFiles(directory=ASSETS_DIR), name="assets")
47+
app.mount("/static", StaticFiles(directory=STATIC_DIR), name="static")
4748

4849
@app.get("/")
4950
async def read_root(request: Request, auth: Optional[SessionData] = Depends(optional_auth)):

0 commit comments

Comments
 (0)