Files
ghatreh_user/src/api/categories.ts
T
2026-06-13 12:20:11 +03:30

11 lines
261 B
TypeScript

import useAxios from '@/utils/useAxios'
export interface StoreCategory {
id: number
name: string
sort_order?: number
}
export const getStoreCategories = async (): Promise<StoreCategory[]> =>
await useAxios.get<StoreCategory[]>('/customer/categories')