Page Contents
Home > @loopback/rest > RestComponent > (constructor)
RestComponent.(constructor)
Constructs a new instance of the RestComponent class
Signature:
constructor(app: Application, config?: RestComponentConfig);
Parameters
| Parameter | Type | Description |
|---|---|---|
| app | [Application](/doc/en/lb4/apidocs.core.application.html) | |
| config | [RestComponentConfig](/doc/en/lb4/apidocs.rest.restcomponentconfig.html) | _(Optional)_ |