Now adding station id to headers of request for scan auth

ref #157
This commit is contained in:
Nicolai Ort 2021-03-17 11:45:40 +01:00
parent c5178e0181
commit 8ba7ee1d48
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ const ScanAuth = async (req: Request, res: Response, next: () => void) => {
res.status(401).send("Api token invalid.");
return;
}
req.headers["station_id"] = station.id.toString();
next();
}
}