fix: build for multi page frontend

This commit is contained in:
Kentai Radiquum 2025-05-05 01:57:31 +05:00
parent af7b8a6fea
commit 7f704ec75a
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
3 changed files with 14 additions and 3 deletions

View file

@ -20,6 +20,8 @@ def index():
def rewrite_next(path):
if os.path.exists(f"./static/{path}"):
return send_file(f"./static/{path}")
if os.path.exists(f"./templates/{path}.html"):
return render_template(f"{path}.html")
return abort(404)