UNPKG

ng-apimock-with-presets

Version:

An ng-apimock fork with preset functionality

24 lines 940 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var http_1 = require("../../http"); var GetMocksHandler = (function () { function GetMocksHandler() { } GetMocksHandler.prototype.handleRequest = function (request, response, next, registry, ngApimockId) { var selections = this.getSelections(registry, ngApimockId); var echos = this.getEchos(registry, ngApimockId); var delays = this.getDelays(registry, ngApimockId); response.writeHead(200, http_1.httpHeaders.CONTENT_TYPE_APPLICATION_JSON); response.end(JSON.stringify({ mocks: registry.mocks, selections: selections, delays: delays, echos: echos, recordings: registry.recordings, record: registry.record })); }; return GetMocksHandler; }()); exports.default = GetMocksHandler; //# sourceMappingURL=getMocksHandler.js.map