From 108caa0baacbb66e94881679c2d97eb17ed577fd Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 14 Sep 2021 13:06:37 +0900 Subject: [PATCH] added message for 401 --- functions/src/routes/dataRoutes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/routes/dataRoutes.ts b/functions/src/routes/dataRoutes.ts index f3d6abc..3a4705a 100644 --- a/functions/src/routes/dataRoutes.ts +++ b/functions/src/routes/dataRoutes.ts @@ -8,7 +8,7 @@ import config from "../config.json" const checkIfLoggedIn = (req: Request, res: Response, next: NextFunction) => { if (req.isAuthenticated()) return next() - res.status(401).send() + res.status(401).send("Not authenticated") } export default (app: Express): void => {