The application: registers plugins, owns the router and middleware pipeline, and manages the server lifecycle.
readonly
router: IRouterApi
The application router.
readonly
middleware: IMiddlewareApi
The global middleware pipeline.
readonly
services: IServiceRegistry
The application-scoped service registry.
register(plugin: IPlugin): IApplication
Registers a plugin. Plugins register when the application starts, in dependency order.
start(options?: StartOptions): Promise<void>
Resolves plugins, builds the pipeline and router, and starts the server.
stop(): Promise<void>
Stops the server and runs shutdown hooks.