2
0
Files
bot/apps/builder/src/features/customDomains/queries/deleteCustomDomainQuery.ts
2022-11-15 15:14:38 +01:00

15 lines
355 B
TypeScript

import { Credentials } from 'db'
import { stringify } from 'qs'
import { sendRequest } from 'utils'
export const deleteCustomDomainQuery = async (
workspaceId: string,
customDomain: string
) =>
sendRequest<{
credentials: Credentials
}>({
url: `/api/customDomains/${customDomain}?${stringify({ workspaceId })}`,
method: 'DELETE',
})