kleckrelay/src/apis/get-reports.ts
2022-11-05 15:52:41 +01:00

11 lines
318 B
TypeScript

import {PaginationResult, Report} from "~/server-types"
import {client} from "~/constants/axios-client"
export default async function getReports(): Promise<PaginationResult<Report>> {
const {data} = await client.get(`${import.meta.env.VITE_SERVER_BASE_URL}/v1/report`, {
withCredentials: true,
})
return data
}