Last active
January 9, 2016 22:37
-
-
Save miyamotodev123/6fb89abaf1ba26e4e27f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
... | |
app.use(express.static(path.join(__dirname, '/public'))); //Expose /public | |
// routes ====================================================================== | |
require('./app/routes.js')(app, passport); // load our routes and pass in our app and fully configured passport | |
// catch all other routes and have index.html handle them. | |
app.get('*', function (req, res){ | |
res.sendFile(path.join(__dirname+ '/public/views/index.html')); | |
}); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment