PoweredByHeaderMiddleware.js 533 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const http_1 = require("../base/http");
  4. class PoweredByHeaderMiddleware extends http_1.Middleware {
  5. constructor() {
  6. super(...arguments);
  7. this.action = (req, res, next) => {
  8. res.setHeader('X-Powered-By', 'org.crazydoctor.expressts');
  9. next();
  10. };
  11. this.order = -101;
  12. this.route = null;
  13. }
  14. }
  15. exports.default = PoweredByHeaderMiddleware;
  16. //# sourceMappingURL=PoweredByHeaderMiddleware.js.map