From 6e177654dc136acd27cd25be962e540d9773c9eb Mon Sep 17 00:00:00 2001 From: Tristan Lee Date: Wed, 12 Jun 2024 17:23:10 -0400 Subject: [PATCH] Create route for index --- examples/v7-ef-htmltransform/routes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/v7-ef-htmltransform/routes.js b/examples/v7-ef-htmltransform/routes.js index a022c3dc3..08e72cdd3 100644 --- a/examples/v7-ef-htmltransform/routes.js +++ b/examples/v7-ef-htmltransform/routes.js @@ -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')