Pretend songs.json is just another static file
This commit is contained in:
parent
4064b4d9b7
commit
7fbea281b8
@ -9,7 +9,7 @@ def get_flask_app(songs: Sequence[dict[str, str]]) -> Flask:
|
|||||||
# This is only to make the type checker happy.
|
# This is only to make the type checker happy.
|
||||||
songs_list = list(songs)
|
songs_list = list(songs)
|
||||||
|
|
||||||
@app.get("/api/songs")
|
@app.get("/songs.json")
|
||||||
def get_songs() -> list[dict[str, str]]:
|
def get_songs() -> list[dict[str, str]]:
|
||||||
return songs_list
|
return songs_list
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user