refactor: ky
This commit is contained in:
@@ -99,7 +99,9 @@ export interface ReportSummary {
|
||||
}
|
||||
|
||||
export const reportsApi = {
|
||||
list: () => httpClient.get<ReportSummary[]>('/Reports'),
|
||||
list: async () => ({
|
||||
data: await httpClient.get('Reports').json<ReportSummary[]>(),
|
||||
}),
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user