koel/resources/assets/js/stores/genreStore.ts
2022-10-21 22:06:43 +02:00

6 lines
200 B
TypeScript

import { http } from '@/services'
export const genreStore = {
fetchAll: async () => await http.get<Genre[]>('genres'),
fetchOne: async (name: string) => await http.get<Genre>(`genres/${name}`)
}