Skip to content

Commit

Permalink
Merge pull request #78 from pelias/redirect-to-demo
Browse files Browse the repository at this point in the history
feat(server): Redirect root path to demo
  • Loading branch information
orangejulius authored Nov 14, 2019
2 parents eb0bdae + 82a4216 commit e49e6c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ app.use((req, res, next) => {
// routes
app.get('/parser/parse', require('./routes/parse'))
app.use('/demo', express.static(path.join(__dirname, '/demo')))
app.use('/', (req, res) => { res.redirect('/demo') })

// start multi-threaded server
if (cpus > 1) {
Expand Down

0 comments on commit e49e6c7

Please sign in to comment.