diff --git a/app.py b/app.py index 83f66fc..813b78a 100644 --- a/app.py +++ b/app.py @@ -11,6 +11,7 @@ app = FastAPI() # Mount static files app.mount("/static", StaticFiles(directory="static"), name="static") +app.add_middleware( HTTPSRedirectMiddleware ) # Templates directory templates = Jinja2Templates(directory="templates") diff --git a/templates/base_template.html b/templates/base_template.html index 5f049cb..6d45e4b 100644 --- a/templates/base_template.html +++ b/templates/base_template.html @@ -4,7 +4,7 @@