Page Contents

Home > @loopback/rest > RestServer > (constructor)

RestServer.constructor

Creates an instance of RestServer.

Signature:

constructor(app: Application, config?: RestServerConfig);

Parameters

Parameter Type Description
app Application The application instance (injected via CoreBindings.APPLICATION_INSTANCE).
config RestServerConfig The configuration options (injected via RestBindings.CONFIG).