Page Contents

Home > @loopback/rest > HttpHandler > registerController

HttpHandler.registerController() method

Signature:

registerController<T>(spec: ControllerSpec, controllerCtor: ControllerClass<T>, controllerFactory?: ControllerFactory<T>): void;

Parameters

Parameter Type Description
spec ControllerSpec  
controllerCtor ControllerClass<T>  
controllerFactory ControllerFactory<T>  

Returns:

void