UNPKG

autumn-js

Version:
18 lines (15 loc) 520 B
import { RouterContext } from 'rou3'; import { R as RouteDefinition } from '../../routeTypes-D4BWkDI8.js'; import '../../authTypes-jU7ON-I5.js'; import 'zod/v4'; import '../utils/sanitizeBody.js'; import '../types/responseTypes.js'; type RouteMatch = { route: RouteDefinition; }; /** Build a rou3 router from route definitions */ declare const buildRouter: ({ pathPrefix, routes, }: { pathPrefix: string; routes: RouteDefinition[]; }) => RouterContext<RouteMatch>; export { type RouteMatch, buildRouter };