banner order update

This commit is contained in:
Samandar Turgunboyev
2026-02-10 18:14:52 +05:00
parent bd1cf26c46
commit 287fe8a842
7 changed files with 202 additions and 16 deletions

View File

@@ -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)}`);