Page Contents

Home > @loopback/rest > createControllerFactoryForInstance

createControllerFactoryForInstance() function

Create a controller factory function for a given instance

Signature:

export declare function createControllerFactoryForInstance<T extends object>(controllerInst: T): ControllerFactory<T>;

Parameters

Parameter Type Description
controllerInst T  

Returns:

ControllerFactory<T>