2023-03-15 08:35:16 +01:00
|
|
|
import { Credentials } from '@typebot.io/prisma'
|
2022-11-15 09:35:48 +01:00
|
|
|
import { stringify } from 'qs'
|
2023-03-15 08:35:16 +01:00
|
|
|
import { sendRequest } from '@typebot.io/lib'
|
2022-11-15 09:35:48 +01:00
|
|
|
|
|
|
|
|
export const deleteCustomDomainQuery = async (
|
|
|
|
|
workspaceId: string,
|
|
|
|
|
customDomain: string
|
|
|
|
|
) =>
|
|
|
|
|
sendRequest<{
|
|
|
|
|
credentials: Credentials
|
|
|
|
|
}>({
|
|
|
|
|
url: `/api/customDomains/${customDomain}?${stringify({ workspaceId })}`,
|
|
|
|
|
method: 'DELETE',
|
|
|
|
|
})
|