ng-apimock-with-presets
Version:
An ng-apimock fork with preset functionality
19 lines • 825 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var http_1 = require("../../http");
var SetMocksToPassThroughsHandler = (function () {
function SetMocksToPassThroughsHandler() {
}
SetMocksToPassThroughsHandler.prototype.handleRequest = function (request, response, next, registry, ngApimockId) {
this.setToPassThroughs(registry, ngApimockId);
var selections = this.getSelections(registry, ngApimockId);
response.writeHead(200, http_1.httpHeaders.CONTENT_TYPE_APPLICATION_JSON);
response.end(JSON.stringify({
mocks: registry.mocks,
selections: selections
}));
};
return SetMocksToPassThroughsHandler;
}());
exports.default = SetMocksToPassThroughsHandler;
//# sourceMappingURL=setMocksToPassThroughsHandler.js.map