format, move /upload
This commit is contained in:
parent
9e8aa40c96
commit
148d4333e4
1 changed files with 5 additions and 3 deletions
8
app.py
8
app.py
|
@ -198,6 +198,11 @@ def filemgr(path=""):
|
|||
return render_template("filemanager.html", files=files, path=path)
|
||||
|
||||
|
||||
@app.route("/upload")
|
||||
def upload():
|
||||
return render_template("upload.html")
|
||||
|
||||
|
||||
@app.route("/api/start", methods=["POST"])
|
||||
async def api_start():
|
||||
if mpv_running():
|
||||
|
@ -341,9 +346,6 @@ async def api_volume():
|
|||
|
||||
return jsonify(volume)
|
||||
|
||||
@app.route("/upload")
|
||||
def upload():
|
||||
return render_template("upload.html")
|
||||
|
||||
@app.route("/api/upload", methods=["POST"])
|
||||
def upload_api():
|
||||
|
|
Loading…
Add table
Reference in a new issue