diff --git a/src/start-server.ts b/src/start-server.ts index a3db483b..926e1bf6 100644 --- a/src/start-server.ts +++ b/src/start-server.ts @@ -43,9 +43,13 @@ if ( // Set up routes app.get('/public/logs', serveIndex); - app.get('/public', serveIndex); app.get('/public/', serveIndex); + // Redirect `/public` to `/public/` + app.get('/public', (c: Context) => { + return c.redirect('/public/'); + }); + // Serve other static files app.use( '/public/*',