NamespaceOptionalbuiltinAn 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.
OptionaldatabaseThe key-value store of the Brick instance. Defaults to an in-memory store.
OptionalhostThe host on which the Express server will listen.
OptionalidThe unique identifier of the Brick instance. If not provided, a random UUID will be generated.
OptionalintelligenceThe Intelligence of the Brick instance. This is used to manage the AI capabilities of the Brick.
OptionallogA boolean indicating whether the logs should be in JSON format.
OptionallogThe log level of the Brick instance. This determines the level of detail of the logs.
OptionalmiddlewareAn array of middleware functions to use in the Express application.
OptionalnameThe name of the Brick instance. If not provided, the id will be used as the name.
OptionalpinoThe options for the pino logger used by the Brick instance.
OptionalportThe port on which the Express server will listen.
OptionalroutesAn 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.
OptionalstructureThe parent Structure of the Brick, if any.
Interface for the options of ExpressBrick. It extends from BrickOptions and adds properties specific to ExpressBrick.