You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ^ `app.use(staticFileMiddleware)` is included twice as per https://github.com/bripkens/connect-history-api-fallback/blob/master/examples/static-files-and-index-rewrite/README.md#configuring-the-middleware
app.get('/', function (req, res) {
res.render(path.join(__dirname + '/index.html'))
})
const port = process.env.PORT || 5000;
app.listen(port, function () {
console.log( `Express serving on port ${port}...` )