Skip to content

Commit

Permalink
Create route for index
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed Jun 12, 2024
1 parent e4bda61 commit 6e17765
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/v7-ef-htmltransform/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export default new Router()
max_age: '1h',
},
})
.get('/', ({ serveStatic }) => {
serveStatic('./public/index.html');
})

// serve static files from the /public directory
.static('./public')
Expand Down

0 comments on commit 6e17765

Please sign in to comment.