Class Domain

Implements

Constructors

Properties

domain: string
isDefault: boolean
redirects: {
    baseUrlRedirect: null | string;
    invalidShortUrlRedirect: null | string;
    regular404Redirect: null | string;
}

Methods

  • Set the 404 redirect for this domain

    Parameters

    • redirect: string | URL

    Returns Promise<void>

  • Set the base redirect for this domain

    Parameters

    • redirect: string | URL

    Returns Promise<void>

  • Set the invalid redirect for this domain

    Parameters

    • redirect: string | URL

    Returns Promise<void>