UNPKG

@nova-ts/core

Version:

A serverside framework used to build scalable application

28 lines (25 loc) 842 B
import express from 'express'; /** * @class HttpFactory * @description * Responsible for wiring up all the controllers and their respective routes * into the Express application during Nova application initialization. * * It reads controller metadata from the `ControllerRegistry`, resolves instances * using the `ApplicationContext`, and maps each method to its corresponding Express route. * * It also handles the injection of request parameters using `NovaControllerResolver` * and applies filters/middleware where necessary. * */ declare class NovaHttpFactory { private app; constructor(app: express.Express); /** * Initializes all controller routes and registers them into the Express application. * */ initializeRoute(): this; initializeExceptionHandler(): this; } export { NovaHttpFactory };