import { Request, Response, Middleware, NextFunction } from '../base/http';
import { MiddlewareOrder } from './MiddlewareOrder';

class PoweredByHeaderMiddleware extends Middleware {
	protected action = (req: Request, res: Response, next: NextFunction): any => {
		res.setHeader('X-Powered-By', 'org.crazydoctor.expressts');
		next();
	};
	protected order = MiddlewareOrder.PoweredByHeaderMiddleware;
	protected route = null;
}

export { PoweredByHeaderMiddleware };