Add sb server host as response header

This commit is contained in:
Ajay
2023-04-07 12:47:08 -04:00
parent 8a236d66ed
commit e1a607ba39
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import { NextFunction, Request, Response } from "express";
import os from "os";
export function hostHeader(req: Request, res: Response, next: NextFunction): void {
res.header("SBSERVER-HOST", os.hostname());
next();
}