From d78efed30b091882dc3337544e2f0bdfbbadd160 Mon Sep 17 00:00:00 2001 From: Henrik Jess Date: Tue, 10 Dec 2024 17:42:24 +0100 Subject: [PATCH] https enforcement --- app.py | 1 + templates/base_template.html | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) 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 @@ {% block title %}PortugalFAQ{% endblock %} - @@ -39,10 +39,10 @@ - - - - - + + + + + \ No newline at end of file