gift card export, new category, login theme fix

This commit is contained in:
2026-09-20 17:25:25 +03:30
parent 7ff90b05d0
commit 8004dd52b3
6 changed files with 359 additions and 13 deletions
+3
View File
@@ -10,6 +10,9 @@ export type CategoryListParams = {
export const getCategories = async (params?: CategoryListParams) =>
await useAxios.get<Category[]>('/admin/categories', { params })
export const createCategory = async (payload: CategoryInput) =>
await useAxios.post<Category>('/admin/categories', payload)
export const updateCategory = async (id: number, payload: Partial<CategoryInput>) =>
await useAxios.put<Category>(`/admin/categories/${id}`, payload)