From fd30ae2a15a9bdf7c4f3570689bdfea0753b22d1 Mon Sep 17 00:00:00 2001 From: Jhonatan Jacome Date: Mon, 9 Dec 2024 20:57:12 -0500 Subject: [PATCH] Remove unnecessary file #27 --- frontend/src/services/api.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 frontend/src/services/api.ts 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; -};