UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

19 lines 474 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Endpoint = void 0; class Endpoint { bindToHttp(http) { return Object.assign(this, { http }); } bindToIo(io) { return Object.assign(this, { io }); } assignHandler(handler) { return Object.assign(this, { handler }); } static build() { return new Endpoint(); } } exports.Endpoint = Endpoint; //# sourceMappingURL=endpoint.js.map