2
0
Files
bot/apps/builder/components/share/queries/isPublicDomainAvailableQuery.ts
2022-11-04 13:53:54 +01:00

8 lines
225 B
TypeScript

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