diff --git a/server/routes.js b/server/routes.js index 099ad1b1..3f7cd911 100644 --- a/server/routes.js +++ b/server/routes.js @@ -8,7 +8,7 @@ function initRoutes(app, connPool, config) { ['POST', '/api/config', misc, 'getConfig', {}], ]; - for (route of routes) { + for (let route of routes) { const [httpMethod, path, controller, handler, options] = route; const callback = async function(req, res) {