Page Contents

Home > @loopback/rest > createControllerFactoryForClass

createControllerFactoryForClass() function

Create a controller factory function for a given class

Signature:

export declare function createControllerFactoryForClass<T extends object>(controllerCtor: ControllerClass<T>): ControllerFactory<T>;

Parameters

Parameter Type Description
controllerCtor ControllerClass<T> Controller class

Returns:

ControllerFactory<T>