11 lines
261 B
TypeScript
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')
|