resources/assets/js/stores/genreStore.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { http } from '@/services'

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