mirror of
https://github.com/Radiquum/YAMPD.git
synced 2025-05-20 23:59:35 +05:00
feat: add build script
This commit is contained in:
parent
6421fde57e
commit
9cf32caea3
2 changed files with 30 additions and 2 deletions
|
@ -6,13 +6,11 @@ import os
|
|||
app = Flask(__name__)
|
||||
|
||||
|
||||
# TODO: auto copy next html files to templates folder
|
||||
@app.route("/")
|
||||
def index():
|
||||
return render_template("index.html")
|
||||
|
||||
|
||||
# TODO: auto copy next static out on build to static folder
|
||||
@app.route("/<path:path>")
|
||||
def rewrite_next(path):
|
||||
if os.path.exists(f"./static/{path}"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue