forked from rDrama/rDrama
fdsfds
parent
d0a2a9a1b9
commit
4a234e0121
|
@ -405,6 +405,12 @@ def songs(id):
|
||||||
if user and user.song: return redirect(f"/static/song/{user.song}.mp3")
|
if user and user.song: return redirect(f"/static/song/{user.song}.mp3")
|
||||||
else: abort(404)
|
else: abort(404)
|
||||||
|
|
||||||
|
@app.get("/@<username>/song")
|
||||||
|
def songs(username):
|
||||||
|
user = get_user(username)
|
||||||
|
if user.song: return redirect(f"/static/song/{user.song}.mp3")
|
||||||
|
else: abort(404)
|
||||||
|
|
||||||
@app.get("/song/<song>")
|
@app.get("/song/<song>")
|
||||||
@app.get("/static/song/<song>")
|
@app.get("/static/song/<song>")
|
||||||
def song(song):
|
def song(song):
|
||||||
|
|
Loading…
Reference in New Issue