Created
January 8, 2016 04:44
-
-
Save miyamotodev123/7869344cb6b7f58cfa1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// server.js | |
... | |
var session = require('express-session'); | |
var path = require('path'); // add path into our required list | |
... | |
app.use(passport.session()); // persistent login sessions | |
app.use(express.static(path.join(__dirname, '/public'))); //Expose /public | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment