fixed mirgation + back-end + front end filter, heart shaped button and special FavSongRow

This commit is contained in:
danis
2023-09-17 20:57:10 +02:00
parent c21f5f0659
commit 431427d7ad
13 changed files with 235 additions and 78 deletions
+11 -5
View File
@@ -665,13 +665,19 @@ export default class API {
}
public static async addLikedSong(songId: number): Promise<void> {
const data = await API.fetch(
await API.fetch(
{
route: `/auth/me/likes${songId}`,
route: `/auth/me/likes/${songId}`,
method: 'POST',
body: {
songId: songId
}
}
)
}
public static async removeLikedSong(songId: number): Promise<void> {
await API.fetch(
{
route: `/auth/me/likes/${songId}`,
method: 'DELETE',
}
)
}