From 8ba7ee1d481e44e686489e237980b21aaaf6071c Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 17 Mar 2021 11:45:40 +0100 Subject: [PATCH] Now adding station id to headers of request for scan auth ref #157 --- src/middlewares/ScanAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewares/ScanAuth.ts b/src/middlewares/ScanAuth.ts index 2f39bbf..05793f0 100644 --- a/src/middlewares/ScanAuth.ts +++ b/src/middlewares/ScanAuth.ts @@ -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(); } }