8 lines
225 B
TypeScript
8 lines
225 B
TypeScript
import { sendRequest } from 'utils'
|
|
|
|
export const isPublicDomainAvailableQuery = (publicId: string) =>
|
|
sendRequest<{ isAvailable: boolean }>({
|
|
method: 'GET',
|
|
url: `/api/publicIdAvailable?publicId=${publicId}`,
|
|
})
|