Skip to content

Commit 6e17765

Browse files
committed
Create route for index
1 parent e4bda61 commit 6e17765

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/v7-ef-htmltransform/routes.js

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export default new Router()
2121
max_age: '1h',
2222
},
2323
})
24+
.get('/', ({ serveStatic }) => {
25+
serveStatic('./public/index.html');
26+
})
2427

2528
// serve static files from the /public directory
2629
.static('./public')

0 commit comments

Comments
 (0)