Function controllerProduces

  • Decorator for a controller class that sets the HTTP response Content-Type header value for all endpoints.

    Parameters

    • contentType: string

      Content-Type header value.

    Returns ((classDefinition) => void)

      • (classDefinition): void
      • Parameters

        • classDefinition: Function

        Returns void

Generated using TypeDoc