@methodus/server
Version:
Server components for @methodus workflow
23 lines • 616 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rest_1 = require("./servers/express/rest");
class Verbs {
}
Verbs.Get = 'GET';
Verbs.Post = 'POST';
Verbs.Put = 'PUT';
Verbs.Patch = 'PATCH';
Verbs.Head = 'HEAD';
Verbs.Delete = 'DELETE';
exports.Verbs = Verbs;
class RestParser {
constructor(type) {
this.parser = new rest_1.RestParser();
this.response = rest_1.RestResponse;
}
parse(args, paramsMap, functionArgs) {
return this.parser.parse(args, paramsMap, functionArgs);
}
}
exports.RestParser = RestParser;
//# sourceMappingURL=rest.js.map