47 lines
968 B
Python
47 lines
968 B
Python
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
songs = [
|
|
{
|
|
"title": "Imole De",
|
|
"year": 2023,
|
|
"album": "The Glory Experience",
|
|
"streams": "10M+"
|
|
},
|
|
{
|
|
"title": "Breathe",
|
|
"year": 2022,
|
|
"album": "The Gospel of The Kingdom",
|
|
"streams": "8M+"
|
|
},
|
|
{
|
|
"title": "Adoring You",
|
|
"year": 2021,
|
|
"album": "The Gospel of The Kingdom",
|
|
"streams": "5M+"
|
|
},
|
|
{
|
|
"title": "Yahweh",
|
|
"year": 2020,
|
|
"album": "Kingdom Now",
|
|
"streams": "12M+"
|
|
},
|
|
{
|
|
"title": "Higher",
|
|
"year": 2019,
|
|
"album": "Code Life",
|
|
"streams": "7M+"
|
|
}
|
|
]
|
|
|
|
@router.get("/gospel")
|
|
async def get_dunsin_songs():
|
|
"""Get Dunsin Oyekan's most popular songs"""
|
|
return {
|
|
"artist": "Dunsin Oyekan",
|
|
"genre": "Gospel",
|
|
"popular_songs": songs,
|
|
"method": "GET",
|
|
"_verb": "get"
|
|
} |