forked from rDrama/rDrama
master
parent
543198a1ca
commit
a05aed3300
|
@ -377,8 +377,7 @@ def songs(v, id):
|
||||||
|
|
||||||
@app.get("/song/<song>")
|
@app.get("/song/<song>")
|
||||||
@app.get("/static/song/<song>")
|
@app.get("/static/song/<song>")
|
||||||
@auth_required
|
def song(song):
|
||||||
def song(v, song):
|
|
||||||
if request.path.startswith('/song/'): return redirect(request.full_path.replace('/song/', '/static/song/'))
|
if request.path.startswith('/song/'): return redirect(request.full_path.replace('/song/', '/static/song/'))
|
||||||
resp = make_response(send_from_directory('/songs', song))
|
resp = make_response(send_from_directory('/songs', song))
|
||||||
resp.headers.remove("Cache-Control")
|
resp.headers.remove("Cache-Control")
|
||||||
|
|
Loading…
Reference in New Issue