15 lines
355 B
TypeScript
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',
|
|
})
|