Skip to content

Commit 053bd78

Browse files
authored
Fixed API
1 parent 3cd5e96 commit 053bd78

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/Topbar.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
}
3232
3333
const handleSearch = async () => {
34-
await fetch(`https://saavn.dev/api/search/?query=${searchText}`)
34+
await fetch(`https://saavn.dev/api/search?query=${searchText}`)
3535
.then((response) => response.json())
3636
.then((data) => {
3737
searchResultStore.set(data.data);

src/components/explorepageComponents/Searchpage.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
}
5151
5252
const handleSearch = async () => {
53-
await fetch(`https://saavn.dev/api/search/?query=${searchText}`)
53+
await fetch(`https://saavn.dev/api/search?query=${searchText}`)
5454
.then((response) => response.json())
5555
.then((data) => {
5656
console.log("Data -", data);

src/pages/Explorepage.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
3030
const handleSearch = async () => {
31-
await fetch(`https://saavn.dev/api/search/?query=${searchText}`)
31+
await fetch(`https://saavn.dev/api/search?query=${searchText}`)
3232
.then((response) => response.json())
3333
.then((data) => {
3434
searchResultStore.set(data.data);

0 commit comments

Comments
 (0)