mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-20 00:05:26 +02:00
14 lines
336 B
TypeScript
14 lines
336 B
TypeScript
import {ReservedAlias} from "~/server-types"
|
|
import {client} from "~/constants/axios-client"
|
|
|
|
export default async function getReservedAlias(id: string): Promise<ReservedAlias> {
|
|
const {data} = await client.get(
|
|
`${import.meta.env.VITE_SERVER_BASE_URL}/v1/reserved-alias/${id}`,
|
|
{
|
|
withCredentials: true,
|
|
},
|
|
)
|
|
|
|
return data
|
|
}
|