UNPKG

@loopback/docs

Version:
23 lines (15 loc) 632 B
--- lang: en title: 'API docs: rest.controllerfactory' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar permalink: /doc/en/lb4/apidocs.rest.controllerfactory.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [ControllerFactory](./rest.controllerfactory.md) ## ControllerFactory type A factory function to create controller instances synchronously or asynchronously <b>Signature:</b> ```typescript export declare type ControllerFactory<T extends ControllerInstance> = (ctx: Context) => ValueOrPromise<T>; ```