Pretend songs.json is just another static file

This commit is contained in:
Jakob Moser 2025-06-22 15:40:12 +02:00
parent 4064b4d9b7
commit 7fbea281b8
Signed by: jakob
GPG Key ID: 3EF2BA2851B3F53C

View File

@ -9,7 +9,7 @@ def get_flask_app(songs: Sequence[dict[str, str]]) -> Flask:
# This is only to make the type checker happy.
songs_list = list(songs)
@app.get("/api/songs")
@app.get("/songs.json")
def get_songs() -> list[dict[str, str]]:
return songs_list