Add missing require calls to settings.json

This commit is contained in:
Robbie Antenesse 2019-01-26 13:01:49 -06:00
parent 3564783664
commit f6a8806521
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -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) {