Trying to improve cpu on server..

This commit is contained in:
Kasper Rynning-Tønnesen
2017-09-18 12:30:16 +02:00
parent 71f5be88df
commit 440d5dc677
14 changed files with 2451 additions and 647 deletions

View File

@@ -3,6 +3,9 @@ var router = express.Router();
const path = require('path');
var nodemailer = require('nodemailer');
var mailconfig = require('../mailconfig.js');
var mongo_db_cred = {config: 'mydb'};
var mongojs = require('mongojs');
var db = mongojs(mongo_db_cred.config);
router.use(function(req, res, next) {
next(); // make sure we go to the next routes and don't stop here