UNPKG

mira-app-core

Version:

Core library for Mira TypeScript project - provides base functionality without auto-execution

20 lines 833 B
import { Router, Handler } from 'express'; import { MiraBackend } from './MiraBackend'; export declare class HttpRouter { private router; private registerdRounters; private libraryServices; backend: MiraBackend; constructor(bakend: MiraBackend); registerRounter(libraryId: string, path: string, method: string, router: Handler): void; unregisterRounter(path: string, libraryId?: string, handler?: Handler): void; getHandler(path: string, libraryId: string): Handler | undefined; getHandlers(path: string): Map<string, Handler> | undefined; getRegisteredPaths(): string[]; hasPath(path: string): boolean; hasPathForLibrary(path: string, libraryId: string): boolean; private setupRoutes; getRouter(): Router; close(): Promise<void>; } //# sourceMappingURL=HttpRouter.d.ts.map