mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
implement track favoriting
update img route
This commit is contained in:
committed by
Mungai Njoroge
parent
35a8446f8b
commit
c7cc687286
+5
-4
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user