Browse Source

Add missing require calls to settings.json

master
Robbie Antenesse 4 years ago
parent
commit
f6a8806521
  1. 2
      routes/get_tools.js
  2. 2
      routes/post_tools.js

2
routes/get_tools.js

@ -1,6 +1,8 @@ @@ -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) {

2
routes/post_tools.js

@ -1,6 +1,8 @@ @@ -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) {

Loading…
Cancel
Save