UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

75 lines 2.22 kB
import { Endpoint } from '../models'; import config from '../../config'; declare const _default: Endpoint<{ outgoing: Pick<(typeof config)["storage"], "history">; }, import("../models").IEndpointSchema<{ outgoing: Pick<(typeof config)["storage"], "history">; }>> & { http: { readonly method: "GET"; readonly path: "/config"; }; } & { io: { readonly path: "config:get"; }; } & { handler: ({ reply }: (import("..").InternalHttpRequestContext<Pick<{ readonly database: { readonly systemKeyPrefix: "system:b3afded0-c54d-4841-a933-ae0579b22547"; }; readonly statics: { readonly public: { readonly dir: string; }; }; readonly routes: { readonly internal: { readonly root: "/_system"; readonly gui: "/gui"; }; }; readonly history: { readonly limit: number; readonly persistence: { readonly isEnabled: boolean; readonly key: string; }; }; readonly logger: { readonly level: import("../..").TLoggerLevel; }; }, "history">> | import("..").InternalSocketIoRequestContext<Pick<{ readonly database: { readonly systemKeyPrefix: "system:b3afded0-c54d-4841-a933-ae0579b22547"; }; readonly statics: { readonly public: { readonly dir: string; }; }; readonly routes: { readonly internal: { readonly root: "/_system"; readonly gui: "/gui"; }; }; readonly history: { readonly limit: number; readonly persistence: { readonly isEnabled: boolean; readonly key: string; }; }; readonly logger: { readonly level: import("../..").TLoggerLevel; }; }, "history">>) & { incoming: { data?: unknown; query?: unknown; }; }) => void; }; export default _default; //# sourceMappingURL=config.get.endpoint.d.ts.map