1
0
mirror of https://github.com/robonen/metr.git synced 2026-03-20 02:44:42 +00:00

Vue, back edited,added

This commit is contained in:
Konstantin Vinokurov
2022-05-31 00:39:41 +07:00
parent 2825c1a4c8
commit 9de12f2c3f
6 changed files with 99 additions and 22 deletions

View File

@@ -5,6 +5,18 @@ export const OfferService = {
const resp = await api.post('/offers', data);
return resp;
},
async update(id, data) {
const resp = await api.put(`/offers/${id}`, data);
return resp;
},
async allUserOffers() {
const resp = await api.get('/users/offers');
return resp;
},
async getById(id) {
const resp = await api.get(`/offers/${id}`);
return resp;
}
};
export default OfferService;