zents
Version:
ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.
11 lines (10 loc) • 623 B
TypeScript
import type { Controllers, RouteHandler, Router, SecurityProviders } from '../types/types';
import type { Route } from '../types/interfaces';
import findMyWay from 'find-my-way';
export declare class RouterFactory {
private handler;
generate(controllers: Controllers, securityProviders: SecurityProviders, handler: RouteHandler): Router;
protected bindController(router: findMyWay.Instance<findMyWay.HTTPVersion.V1>, key: string, routes: Route[]): void;
protected bindStaticRoute(router: Router): void;
protected bindSecurityProviderRoutes(router: Router, securityProviders: SecurityProviders): void;
}