Function Route

  • Registers a RequestHandler

    Type Parameters

    • This

    Parameters

    • httpMethod: HTTPMethod
    • path: string

      {string}

    • options: RouteOptions = ...

      {RouteOptions}

    Returns ((method, context) => RouterBeanHandler)

      • (method, context): RouterBeanHandler
      • Parameters

        • method: RouterBeanHandler
        • context: ClassMethodDecoratorContext<This, RouterBeanHandler>

        Returns RouterBeanHandler

    Decorator