2
0
Fork 0
mirror of https://github.com/koel/koel synced 2024-12-30 14:33:06 +00:00
koel/resources/assets/js/stores/genreStore.ts

7 lines
200 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}`)
}