mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-23 09:30:30 +02:00
9 lines
281 B
TypeScript
9 lines
281 B
TypeScript
import {client} from "~/constants/axios-client"
|
|
import {SimpleDetailResponse} from "~/server-types"
|
|
|
|
export default async function logout(): Promise<SimpleDetailResponse> {
|
|
const {data} = await client.post(`${import.meta.env.VITE_SERVER_BASE_URL}/v1/auth/logout`)
|
|
|
|
return data
|
|
}
|