Page Contents

Home > @loopback/rest > ControllerRoute

ControllerRoute class

A route backed by a controller

Signature:

export declare class ControllerRoute<T extends object> extends BaseRoute 

Extends: BaseRoute

Constructors

Constructor Modifiers Description
(constructor)(verb, path, spec, controllerCtor, controllerFactory, methodName)   Construct a controller based route

Properties

Property Modifiers Type Description
_controllerCtor <p>protected</p><p>readonly</p> ControllerClass<T>  
_controllerFactory <p>protected</p><p>readonly</p> ControllerFactory<T>  
_controllerName <p>protected</p><p>readonly</p> string  
_methodName <p>protected</p><p>readonly</p> string  

Methods

Method Modifiers Description
describe()    
invokeHandler(requestContext, args)    
updateBindings(requestContext)