2
0
Files
bot/apps/builder/components/share/queries/isPublicDomainAvailableQuery.ts

8 lines
225 B
TypeScript
Raw Normal View History

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