UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

9 lines 341 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const models_1 = require("../models"); exports.default = models_1.Endpoint .build() .bindToHttp({ method: 'GET', path: '/ping' }) .bindToIo({ path: 'ping' }) .assignHandler(({ reply }) => reply.ok('pong')); //# sourceMappingURL=ping.endpoint.js.map