Skip to main content

Interface: ServerOptions

Defined in: service-core/src/Server.ts:31

The configuration options to use when constructing a new Server instance.

Properties

basePath?

optional basePath?: string

Defined in: service-core/src/Server.ts:35

The base file system path that models and routes will be searched from. Default is .


classLoader?

optional classLoader?: ClassLoader

Defined in: service-core/src/Server.ts:39

The ClassLoader used to scan the source for all exported classes.


config

config: any

Defined in: service-core/src/Server.ts:33

The nconf-compatible configuration object to initialize the server with.


logger?

optional logger?: any

Defined in: service-core/src/Server.ts:37

The logging utility to use for outputing to console/file. Default is Logger() from @rapidrest/core.


objectFactory?

optional objectFactory?: ObjectFactory

Defined in: service-core/src/Server.ts:41

The object factory to use for automatic dependency injection (IOC).