express-oven
Version:
An easy mock API generator with express.js
5 lines (4 loc) • 406 B
TypeScript
import { HttpMethod } from './typing-utils/api-config';
import { DataAdapterStorage } from './utils/create-data-adapter-storage';
import { OperationConfig } from './typing-utils/operations';
export declare const createRouterForApiMethod: (url: string, apiMethodConfig: Partial<Record<HttpMethod, OperationConfig>>, dataAdapterStorage: DataAdapterStorage) => import("express-serve-static-core").Router;