mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-20 00:05:26 +02:00
11 lines
318 B
TypeScript
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
|
|
}
|