mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
Vue, back edited,added
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user