fixes?? nominations??
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user