UNPKG

express-file-routing

Version:
14 lines (13 loc) 409 B
import type { ExpressLike, Options } from "./types"; /** * Attach routes to an Express app or router instance * * ```ts * await createRouter(app) * ``` * * @param app An express app or router instance * @param options An options object (optional) */ declare const createRouter: <T extends ExpressLike = ExpressLike>(app: T, options?: Options) => Promise<T>; export default createRouter;