Skip to main content

Interface: ServerOptions

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

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

Properties

basePath?

optional basePath?: string

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

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:40

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


config

config: any

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

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


logger?

optional logger?: any

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

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:42

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