• Class decorator used for classes that represent a grouping of Express routes

    Example

    @Controller('/api', 'User', 'User Management Routes')
    class User {
    ...
    }

    Type Parameters

    • T

      Class which has methods that are to be routes in the Express Application

    Parameters

    • Optional path: string

      URL path to prefix all Express routes within the class

    • Optional tag: string

      OpenAPI grouping for all Express routes within the class

    • Optional description: string

      OpenAPI description that will be associated with the tag for this class

    Returns ((constructor: T) => void)

      • (constructor: T): void
      • Parameters

        • constructor: T

        Returns void

Generated using TypeDoc