nu met de juiste files toegevoegd
This commit is contained in:
@@ -64,21 +64,12 @@ export const api = {
|
||||
votes: {
|
||||
list: fetcher.path("/api/vote/").method("get").create(),
|
||||
detail: fetcher.path("/api/vote/{id}").method("get").create(),
|
||||
userVotes: fetcher.path("/api/user/{user_id}/votes").method("get").create(),
|
||||
},
|
||||
users: {
|
||||
list: fetcher.path("/api/user/").method("get").create(),
|
||||
detail: fetcher.path("/api/user/{id}").method("get").create(),
|
||||
},
|
||||
profiles: {
|
||||
detail: fetcher.path("/api/profile/{id}").method("get").create(),
|
||||
backgrounds: {
|
||||
list: fetcher.path("/api/profile/background").method("get").create(),
|
||||
detail: fetcher
|
||||
.path("/api/profile/background/{id}")
|
||||
.method("get")
|
||||
.create(),
|
||||
},
|
||||
me: fetcher.path("/api/profile/me").method("get").create(),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -86,5 +77,6 @@ export type User = components["schemas"]["User"];
|
||||
export type Track = components["schemas"]["Track"];
|
||||
export type Album = components["schemas"]["Album"];
|
||||
export type Vote = components["schemas"]["Vote"];
|
||||
export type Profile = components["schemas"]["Profile"];
|
||||
|
||||
export default api;
|
||||
|
||||
Reference in New Issue
Block a user