banner order update
This commit is contained in:
@@ -17,10 +17,10 @@ export const banner_api = {
|
||||
return res;
|
||||
},
|
||||
|
||||
// async update({ body, id }: { id: number; body: ObjectUpdate }) {
|
||||
// const res = await httpClient.patch(`${API_URLS.OBJECT}${id}/update/`, body);
|
||||
// return res;
|
||||
// },
|
||||
async update({ body, id }: { id: number; body: FormData }) {
|
||||
const res = await httpClient.patch(`${API_URLS.BannerUpdate(id)}`, body);
|
||||
return res;
|
||||
},
|
||||
|
||||
async delete(id: string) {
|
||||
const res = await httpClient.delete(`${API_URLS.BannerDelete(id)}`);
|
||||
|
||||
Reference in New Issue
Block a user