diff --git a/frontend/src/services/api.ts b/frontend/src/services/api.ts deleted file mode 100644 index 886276d..0000000 --- a/frontend/src/services/api.ts +++ /dev/null @@ -1,14 +0,0 @@ -export const fetchSongs = async (track: string) => { - const response = await fetch(`http://144.33.15.219:8080/search?track=${encodeURIComponent(track)}`, { - headers: { - 'accept': 'application/json' - } - }); - - if (!response.ok) { - throw new Error('Error fetching songs'); - } - - const data = await response.json(); - return data; -};