mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-19 07:55:25 +02:00
11 lines
297 B
TypeScript
11 lines
297 B
TypeScript
import {client} from "~/constants/axios-client"
|
|
import {Report} from "~/server-types"
|
|
|
|
export default async function getReport(id: string): Promise<Report> {
|
|
const {data} = await client.get(`${import.meta.env.VITE_SERVER_BASE_URL}/v1/report/${id}`, {
|
|
withCredentials: true,
|
|
})
|
|
|
|
return data
|
|
}
|