From 625c55a083b59948a047b4f89c91530869a22975 Mon Sep 17 00:00:00 2001 From: Yevhen Odynets Date: Fri, 15 Oct 2021 02:16:50 +0300 Subject: [PATCH] DONE ONCE AGAIN --- routes/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/router.js b/routes/router.js index f3a0583..1300a9e 100644 --- a/routes/router.js +++ b/routes/router.js @@ -13,7 +13,7 @@ import { setResp403 } from '../helpers/http.js' * @param res * @returns {Promise} */ -export const setForbidden = async (req, res) => { +const setForbidden = async (req, res) => { const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress res.status(403).json(setResp403(`You are not allowed to access the resource. Your IP is ${ip}`)) }