Move article link route to
This commit is contained in:
parent
be4db13179
commit
b6cc79291b
|
@ -257,7 +257,7 @@ def get_best_hit(title: str, hits: list[Hit]) -> tuple[Hit, dict[str, typing.Any
|
|||
raise NoGoodHit
|
||||
|
||||
|
||||
@app.route("/<path:url_title>", methods=["GET", "POST"])
|
||||
@app.route("/link/<path:url_title>", methods=["GET", "POST"])
|
||||
def article_page(url_title: str) -> str | Response:
|
||||
"""Article page."""
|
||||
from_title = url_title.replace("_", " ").strip()
|
||||
|
|
Loading…
Reference in a new issue