UNPKG

apitally

Version:

Simple API monitoring & analytics for REST APIs built with Express, Fastify, Hono, Koa, and NestJS.

27 lines (25 loc) 547 B
declare function parseExpressPath(expressPathRegExp: RegExp, params: any[]): string; declare function getEndpoints(app: any, basePath: any): { method: string; path: string; }[]; type Route = { methods: Object; path: string | string[]; stack: any[]; }; type Endpoint = { /** * Path name */ path: string; /** * Methods handled */ methods: string[]; /** * Mounted middlewares */ middlewares: string[]; }; export { type Endpoint, type Route, getEndpoints, parseExpressPath };