mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-23 09:30:30 +02:00
11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
import {ServerUser} from "~/server-types"
|
|
import {client} from "~/constants/axios-client"
|
|
|
|
export default async function getMe(): Promise<ServerUser> {
|
|
const {data} = await client.get(`${import.meta.env.VITE_SERVER_BASE_URL}/v1/account/me`, {
|
|
withCredentials: true,
|
|
})
|
|
|
|
return data
|
|
}
|