Verified Commit 7fbea281 authored by Jakob Moser's avatar Jakob Moser
Browse files

Pretend songs.json is just another static file

parent 4064b4d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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