UNPKG

file-routing-expressjs

Version:

A dependency-free, flexible, system-based file routing for Express.

16 lines (13 loc) 661 B
import { FileBasedRoutingOptions } from './types/index.js'; export { InvalidPluginError, InvalidRouteHandler, RoutesRootNotFound, TimeoutError, UnknownPluginError } from './types/exceptions.js'; import { RouteEndpoints } from './types/routing.js'; export { RouteConfig, RouteErrorHandler, RouteErrorMap, RouteGroupConfig, RouteGroupMiddleware, RouteMiddleware } from './types/routing.js'; export { Plugin } from './types/plugins.js'; import 'express'; import './guards/exception.js'; import './types/common.js'; declare function mapRoutes(options: FileBasedRoutingOptions): Promise<{ endpoints: RouteEndpoints; base: string; }>; export { mapRoutes };