Page Contents

Home > @loopback/rest > HttpHandler > registerController

HttpHandler.registerController() method

Signature:

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

Parameters

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

Returns:

void