()
| 31 | |
| 32 | export const listsApi = { |
| 33 | async getAll(): Promise<Array<ShoppingList>> { |
| 34 | const response = await offlineAwareFetch(`${API_URL}/api/lists`) |
| 35 | if (!response.ok) { |
| 36 | throw new Error(`Failed to fetch lists: ${response.status}`) |
| 37 | } |
| 38 | return response.json() |
| 39 | }, |
| 40 | |
| 41 | async create(data: { |
| 42 | id?: string |
nothing calls this directly
no outgoing calls
no test coverage detected