PoweredByHeaderMiddleware.ts 406 B

12345678910111213
  1. import { Request, Response, NextFunction } from 'express';
  2. import { Middleware } from '../base/http';
  3. class PoweredByHeaderMiddleware extends Middleware {
  4. protected action = (req: Request, res: Response, next: NextFunction): any => {
  5. res.setHeader('X-Powered-By', 'org.crazydoctor.expressts');
  6. next();
  7. };
  8. protected order = -101;
  9. protected route = null;
  10. }
  11. export default PoweredByHeaderMiddleware;