DONE ONCE AGAIN

This commit is contained in:
2021-10-15 02:16:50 +03:00
parent 32d7e45670
commit 625c55a083

View File

@@ -13,7 +13,7 @@ import { setResp403 } from '../helpers/http.js'
* @param res
* @returns {Promise<void>}
*/
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}`))
}