koel/resources/assets/js/stores/genreStore.ts

7 lines
201 B
TypeScript
Raw Normal View History

2022-10-21 20:06:43 +00:00
import { http } from '@/services'
export const genreStore = {
fetchAll: async () => await http.get<Genre[]>('genres'),
fetchOne: async (name: string) => await http.get<Genre>(`genres/${name}`),
2022-10-21 20:06:43 +00:00
}