Namespace
Optional
builtinAn object specifying whether to use built-in middleware functions.
Whether to use the built-in JSON middleware.
Whether to use the built-in URL-encoded middleware.
Optional
databaseThe database of the Brick instance. This is used to manage the data storage and retrieval for the Brick.
Optional
hostThe host on which the Express server will listen.
Optional
idThe unique identifier of the Brick instance. If not provided, a random UUID will be generated.
Optional
intelligenceThe Intelligence of the Brick instance. This is used to manage the AI capabilities of the Brick.
Optional
logJSONA boolean indicating whether the logs should be in JSON format.
Optional
logThe log level of the Brick instance. This determines the level of detail of the logs.
Optional
middlewareAn array of middleware functions to use in the Express application.
Optional
nameThe name of the Brick instance. If not provided, the id will be used as the name.
Optional
pinoThe options for the pino logger used by the Brick instance.
Optional
portThe port on which the Express server will listen.
Optional
routesAn array of routes that the Express server will handle.
The handler function to execute when the route is hit.
The HTTP method for the route.
The path for the route.
Optional
structureThe parent Structure of the Brick, if any.
Interface for the options of ExpressBrick. It extends from BrickOptions and adds properties specific to ExpressBrick.