index.js
370 Bytes
var express = require('express')
var app = express()
var mysql = require('mysql')
var router = express.Router();
var path = require('path')
var passport = require('passport')
var LocalStrategy = require('passport-local').Strategy;
router.get('/',function(req,res) {
req.logout()
console.log(req.user)
res.redirect('/login')
})
module.exports = router;