Crud Membership

This commit is contained in:
2021-12-10 13:18:42 +07:00
committed by caturbgs
parent 48905225bb
commit 0da2118bec
3 changed files with 216 additions and 186 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);
}
}