radweb-server
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -127,10 +127,13 @@ "use strict"; | ||
this.app.route(myRoute + '/:id') | ||
//@ts-ignore | ||
.get(this.process(function (req, res, orig) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { | ||
return [2 /*return*/, api(req).get(res, orig.query.id)]; | ||
return [2 /*return*/, api(req).get(res, orig.params.id)]; | ||
}); }); })) | ||
//@ts-ignore | ||
.put(this.process(function (req, res, orig) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { | ||
return [2 /*return*/, api(req).put(res, orig.query.id, orig.body)]; | ||
return [2 /*return*/, api(req).put(res, orig.params.id, orig.body)]; | ||
}); }); })) | ||
//@ts-ignore | ||
.delete(this.process(function (req, res, orig) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) { | ||
return [2 /*return*/, api(req).delete(res, orig.query.id)]; | ||
return [2 /*return*/, api(req).delete(res, orig.params.id)]; | ||
}); }); })); | ||
@@ -137,0 +140,0 @@ }; |
{ | ||
"name": "radweb-server", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"main":"index.js", | ||
@@ -5,0 +5,0 @@ "Dependencies": { |
Sorry, the diff of this file is not supported yet
55947
775