mirror of
https://github.com/koel/koel
synced 2024-12-20 09:33:23 +00:00
7 lines
200 B
TypeScript
7 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}`)
|
||
|
}
|