UNPKG

@stuntman/server

Version:

Stuntman - HTTP proxy / mock server with API

13 lines 426 B
import { CATCH_ALL_RULE_PRIORITY, CATCH_RULE_NAME } from '@stuntman/shared'; export const catchAllRule = { id: CATCH_RULE_NAME, matches: () => true, priority: CATCH_ALL_RULE_PRIORITY, actions: { mockResponse: (req) => ({ body: `Request received by Stuntman mock <pre>${JSON.stringify(req, null, 4)}</pre>`, status: 200, }), }, }; //# sourceMappingURL=catchAll.js.map