uploaderのスタイルを若干更新

This commit is contained in:
yuuki
2024-02-29 11:19:14 +00:00
parent dc61e1e077
commit e0379f5b2f
3 changed files with 9 additions and 9 deletions

7
app.py
View File

@@ -761,12 +761,9 @@ def send_songs(ref):
def send_manifest():
return cache_wrap(flask.send_from_directory("public", "manifest.json"), 3600)
@app.route("/upload/")
def send_upload():
return cache_wrap(flask.send_from_directory("public/upload", "index.html"), 3600)
@app.route("/upload/", defaults={"ref": "index.html"})
@app.route("/upload/<path:ref>")
def send_upload_sub(ref):
def send_upload(ref):
return cache_wrap(flask.send_from_directory("public/upload", ref), 3600)
@app.route("/upload", methods=["POST"])