fixes?? nominations??

This commit is contained in:
2025-08-01 21:17:12 +02:00
parent 79adf3d3f5
commit 78dc7be703
2 changed files with 43 additions and 4 deletions
+2
View File
@@ -22,6 +22,7 @@ fetcher.configure({
init.headers = {
...init.headers,
Authorization: `Bearer ${user.access_token}`,
"Content-Type": "application/json",
};
}
return next(url, init);
@@ -50,6 +51,7 @@ export const api = {
list: fetcher.path("/api/track/").method("get").create(),
detail: fetcher.path("/api/track/{id}").method("get").create(),
vote: fetcher.path("/api/track/vote").method("get").create(),
nominate: fetcher.path("/api/track/").method("post").create(),
},
artists: {
list: fetcher.path("/api/artist").method("get").create(),