Home > @infiniteobjects/express-server > IServerConfig
Server configuration
Signature:
export interface IServerConfig
| Property | Modifiers | Type | Description |
|---|---|---|---|
| errorHandlers | ErrorRequestHandler[] | Error middleware to add to the request | |
| name | string | Server name | |
| parseBody | boolean | Body Parsing | |
| port | number | Port to listen to | |
| post | RequestHandler[] | Middleware to add to the request after the route handlers. | |
| pre | RequestHandler[] | Middleware to add before the route handlers. A good example is loadUser |
|
| routes | RouteConfig[] | The routes for this server | |
| staticPaths | IStaticPath[] | Static paths to serve (MUST BE ABSOLUTE PATHS) | |
| version | string | Server version |