diff options
author | Parker <contact@pkrm.dev> | 2024-11-08 23:07:20 -0600 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-11-08 23:07:20 -0600 |
commit | 8941213c8d94f3ad84e07e467e78105dc7fed734 (patch) | |
tree | 0ae32555276432b4ddb04a7548ffe2e40904f897 /app/main.py | |
parent | 3cde652d52985365d1daf370065753f54e765f9d (diff) |
Mainly auth re-thinking - just in thought
Diffstat (limited to 'app/main.py')
-rw-r--r-- | app/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main.py b/app/main.py index 4280275..9ef3e03 100644 --- a/app/main.py +++ b/app/main.py @@ -2,6 +2,7 @@ from fastapi import FastAPI, Depends, Request, Path from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import RedirectResponse, JSONResponse from fastapi.templating import Jinja2Templates +from fastapi.staticfiles import StaticFiles from app.routes.auth_routes import router as auth_router from app.routes.links_routes import router as links_router from app.routes.user_routes import router as user_router @@ -35,6 +36,7 @@ app.add_middleware( allow_credentials=True, ) +app.mount("/static", StaticFiles(directory="app/static"), name="static") templates = Jinja2Templates(directory="app/templates") # Import routes |