diff --git a/kjvstudy_org/routes/strongs.py b/kjvstudy_org/routes/strongs.py index 1e30d0c..242683f 100644 --- a/kjvstudy_org/routes/strongs.py +++ b/kjvstudy_org/routes/strongs.py @@ -2,7 +2,7 @@ import re from fastapi import APIRouter, HTTPException, Request -from fastapi.responses import HTMLResponse +from fastapi.responses import HTMLResponse, RedirectResponse from fastapi.templating import Jinja2Templates from ..kjv import bible @@ -23,6 +23,12 @@ def init_templates(t: Jinja2Templates): # Routes # ============================================================================= +@router.get("/concordance") +async def concordance_redirect(): + """Redirect /concordance to /strongs.""" + return RedirectResponse(url="/strongs", status_code=301) + + @router.get("/strongs", response_class=HTMLResponse) async def strongs_index(request: Request, q: str = None): """Strong's Concordance search and lookup page."""