From 608b658be643962f051538bfaa7da83724c09aa4 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Tue, 25 Mar 2025 05:40:49 +0000 Subject: [PATCH] Update code in endpoints/gospel.get.py --- endpoints/gospel.get.py | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/endpoints/gospel.get.py b/endpoints/gospel.get.py index e69de29..d6da5c9 100644 --- a/endpoints/gospel.get.py +++ b/endpoints/gospel.get.py @@ -0,0 +1,49 @@ +from fastapi import APIRouter, HTTPException + +songs = [ + { + "title": "Imela", + "year": 2012, + "album": "Supernatural", + "duration": "5:23" + }, + { + "title": "Oluwatogbemiga", + "year": 2015, + "album": "No Other Name", + "duration": "6:12" + }, + { + "title": "Onise Iyanu", + "year": 2016, + "album": "This God is Too Good", + "duration": "4:56" + }, + { + "title": "Hallelujah Eh", + "year": 2018, + "album": "The Son of God", + "duration": "5:34" + }, + { + "title": "Someone's at the Door", + "year": 2020, + "album": "Revival", + "duration": "6:45" + } +] + +router = APIRouter() + +@router.get("/gospel") +async def get_nathaniel_bassey_songs(): + """Get Nathaniel Bassey's most popular songs""" + return { + "message": "Retrieved Nathaniel Bassey songs successfully", + "artist": "Nathaniel Bassey", + "songs": songs, + "features": { + "total_songs": len(songs), + "latest_year": 2020 + } + } \ No newline at end of file