From 4e3f8edc3174b83145603ff6f75a52f353423da6 Mon Sep 17 00:00:00 2001 From: ReuschelCGN <82573872+ReuschelCGN@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:59:47 +0100 Subject: [PATCH] Update apiConfig.js --- src/routes/apiConfig.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/apiConfig.js b/src/routes/apiConfig.js index 869f8df07..ec72c0f2a 100644 --- a/src/routes/apiConfig.js +++ b/src/routes/apiConfig.js @@ -1,6 +1,6 @@ const { version } = require('../../package.json') -module.exports = async (fastify, options, next) => { +module.exports = async (fastify, options) => { fastify.get('/api/config/poracleWeb', options, async (req) => { fastify.logger.info(`API: ${req.ip} ${req.routeOptions.method} ${req.routeOptions.url}`) if (fastify.config.server.ipWhitelist.length && !fastify.config.server.ipWhitelist.includes(req.ip)) return { webserver: 'unhappy', reason: `ip ${req.ip} not in whitelist` } @@ -72,6 +72,4 @@ module.exports = async (fastify, options, next) => { telegram: Object.fromEntries(typesForPlatform('telegram').map((x) => [x, Object.fromEntries(languagesForType('telegram', x).map((y) => [y, templatesForLanguage('telegram', x, y)]))])), } }) - - next() }