UNPKG

alb-router

Version:

A user-friendly router for Amazon Application Load Balancer paths. Effortlessly match URLs, extract parameters, and handle routing in Node.js.

17 lines (14 loc) 333 B
type ExtractParamsResult = { params: { [key: string]: string; }; handler: string | null; }; type Route = { pattern: string; methods: { [key: string]: string; }; }; declare const extractParams: (path: string, method: string, routes: Route[]) => ExtractParamsResult; export { extractParams };