Crud Membership

This commit is contained in:
2021-12-10 13:18:42 +07:00
parent ab347b8ff9
commit a0207af25e
4 changed files with 220 additions and 190 deletions

View File

@@ -23,16 +23,16 @@ export class Membership {
@action
async create(data) {
return await http.post('/user').send(data)
return await http.post('/users').send(data)
}
@action
async update(id, data) {
return await http.put('/user/' + id).send(data);
return await http.put('/users/' + id).send(data);
}
async delete(id) {
return await http.del('/user/' + id);
return await http.del('/users/' + id);
}
}