forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-22 03:13:41 +02:00
parent d0a2a9a1b9
commit 4a234e0121
1 changed files with 6 additions and 0 deletions

View File

@ -405,6 +405,12 @@ def songs(id):
if user and user.song: return redirect(f"/static/song/{user.song}.mp3")
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("/static/song/<song>")
def song(song):