ExpressJsonMiddleware.js 616 B

1234567891011121314151617
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const http_1 = require("../base/http");
  7. const express_1 = __importDefault(require("express"));
  8. class ExpressJsonMiddleware extends http_1.Middleware {
  9. constructor() {
  10. super(...arguments);
  11. this.order = -100;
  12. this.route = null;
  13. this.action = express_1.default.json();
  14. }
  15. }
  16. exports.default = ExpressJsonMiddleware;
  17. //# sourceMappingURL=ExpressJsonMiddleware.js.map