Add missing require calls to settings.json
This commit is contained in:
		
							parent
							
								
									3564783664
								
							
						
					
					
						commit
						f6a8806521
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -1,6 +1,8 @@
 | 
				
			||||||
const path = require('path');
 | 
					const path = require('path');
 | 
				
			||||||
const fs = require('fs');
 | 
					const fs = require('fs');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const settings = require('../settings.json');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = function (app) {
 | 
					module.exports = function (app) {
 | 
				
			||||||
  app.server.get('/tools', (req, res) => {
 | 
					  app.server.get('/tools', (req, res) => {
 | 
				
			||||||
    if (req.query.pass === settings.toolsPassword) {
 | 
					    if (req.query.pass === settings.toolsPassword) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,8 @@
 | 
				
			||||||
const path = require('path');
 | 
					const path = require('path');
 | 
				
			||||||
const fs = require('fs');
 | 
					const fs = require('fs');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const settings = require('../settings.json');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports = function (app) {
 | 
					module.exports = function (app) {
 | 
				
			||||||
  app.server.post('/tools', (req, res) => {
 | 
					  app.server.post('/tools', (req, res) => {
 | 
				
			||||||
    if (req.query.pass === settings.toolsPassword) {
 | 
					    if (req.query.pass === settings.toolsPassword) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue