From fda44e1eb0476cd15d76d36482ce38fa0165c994 Mon Sep 17 00:00:00 2001 From: Alex Garel Date: Mon, 2 Dec 2024 22:50:37 +0100 Subject: [PATCH] chore: use index.html instead of off.html (#264) It's more universal for other projects re-using search-a-licious. --- app/api.py | 6 +++--- frontend/public/index.html | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 120000 frontend/public/index.html diff --git a/app/api.py b/app/api.py index de90cb88..5227542a 100644 --- a/app/api.py +++ b/app/api.py @@ -194,9 +194,9 @@ def taxonomy_autocomplete( @app.get("/", response_class=HTMLResponse) -def off_demo(): - """Redirects to the off.html page""" - return RedirectResponse(url="/static/off.html", status_code=status.HTTP_302_FOUND) +def serve_index(): + """Redirects to the index.html page""" + return RedirectResponse(url="/static/index.html", status_code=status.HTTP_302_FOUND) @app.get("/off-test", response_class=HTMLResponse) diff --git a/frontend/public/index.html b/frontend/public/index.html new file mode 120000 index 00000000..51b19ecb --- /dev/null +++ b/frontend/public/index.html @@ -0,0 +1 @@ +off.html \ No newline at end of file