UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

49 lines (34 loc) 1.79 kB
--- lang: en title: 'API docs: rest.controllerroute' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest permalink: /doc/en/lb4/apidocs.rest.controllerroute.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [ControllerRoute](./rest.controllerroute.md) ## ControllerRoute class A route backed by a controller <b>Signature:</b> ```typescript export declare class ControllerRoute<T> extends BaseRoute ``` <b>Extends:</b> [BaseRoute](./rest.baseroute.md) ## Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [(constructor)(verb, path, spec, controllerCtor, controllerFactory, methodName)](./rest.controllerroute._constructor_.md) | | Construct a controller based route | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [\_controllerCtor](./rest.controllerroute._controllerctor.md) | | [ControllerClass](./rest.controllerclass.md)<!-- -->&lt;T&gt; | | | [\_controllerFactory](./rest.controllerroute._controllerfactory.md) | | [ControllerFactory](./rest.controllerfactory.md)<!-- -->&lt;T&gt; | | | [\_controllerName](./rest.controllerroute._controllername.md) | | string | | | [\_methodName](./rest.controllerroute._methodname.md) | | string | | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [describe()](./rest.controllerroute.describe.md) | | | | [invokeHandler(requestContext, args)](./rest.controllerroute.invokehandler.md) | | | | [updateBindings(requestContext)](./rest.controllerroute.updatebindings.md) | | |