From f6a8806521a45dd190ca30c25b565cadd80b796e Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Sat, 26 Jan 2019 13:01:49 -0600 Subject: [PATCH] Add missing require calls to settings.json --- routes/get_tools.js | 2 ++ routes/post_tools.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/routes/get_tools.js b/routes/get_tools.js index 072d7fc..435c8f4 100644 --- a/routes/get_tools.js +++ b/routes/get_tools.js @@ -1,6 +1,8 @@ const path = require('path'); const fs = require('fs'); +const settings = require('../settings.json'); + module.exports = function (app) { app.server.get('/tools', (req, res) => { if (req.query.pass === settings.toolsPassword) { diff --git a/routes/post_tools.js b/routes/post_tools.js index ae15566..33111e9 100644 --- a/routes/post_tools.js +++ b/routes/post_tools.js @@ -1,6 +1,8 @@ const path = require('path'); const fs = require('fs'); +const settings = require('../settings.json'); + module.exports = function (app) { app.server.post('/tools', (req, res) => { if (req.query.pass === settings.toolsPassword) {