gift card export, new category, login theme fix
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user