2
0

🐛 (share) Restrict public ID to non-existant only

This commit is contained in:
Baptiste Arnaud
2022-11-04 13:53:54 +01:00
parent 4d38726eae
commit 63845effaf
5 changed files with 70 additions and 3 deletions

View File

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