implement track favoriting

update img route
This commit is contained in:
geoffrey45
2022-12-17 22:42:11 +03:00
committed by Mungai Njoroge
parent 35a8446f8b
commit c7cc687286
12 changed files with 141 additions and 31 deletions
+5 -4
View File
@@ -12,7 +12,6 @@ const domains: D = {
const ports = {
api: 1970,
images: 1971,
};
const imageRoutes = {
@@ -34,7 +33,7 @@ function toggleMode() {
const domain = () => domains[mode];
const baseImgUrl = domain() + ports.images;
const baseImgUrl = domain() + ports.api + "/img";
const baseApiUrl = domain() + ports.api;
@@ -42,6 +41,10 @@ const paths = {
api: {
album: baseApiUrl + "/album",
artist: baseApiUrl + "/artist",
favorite: baseApiUrl + "/favorite",
get removeFavorite() {
return this.favorite + "/remove";
},
get albumartists() {
return this.album + "/artists";
},
@@ -95,6 +98,4 @@ const paths = {
},
};
export { paths, toggleMode };