Skip to content

Commit

Permalink
fix: route for webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrcgo committed Oct 21, 2023
1 parent a21c2a5 commit e5c986c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5-render/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app.set('port', process.env.PORT || 3000)
app.engine('html', require('ejs').renderFile)

app.use('/public', express.static(__dirname + '/web'))
app.get('/', (req, res) => {
app.get('*', (req, res) => {
res.type('html')
res.render(__dirname + '/web/index.html')
})
Expand Down

0 comments on commit e5c986c

Please sign in to comment.