var express = require('express'); var router = express.Router(); var ntr = require("../neutral-functions.js") /* GET home page. */ router.get('/', function(req, res, next) { var check = ntr.checkToken(req, res) if(check == false) { res.redirect(302, "/login") } else { res.render('index', { title: check }); } }); module.exports = router;