mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 23:59:35 +05:00
fix: build for multi page frontend
This commit is contained in:
parent
af7b8a6fea
commit
7f704ec75a
3 changed files with 14 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue