From 30514fef550a0dfa5c27ba095d99a5fbef750268 Mon Sep 17 00:00:00 2001 From: visargD Date: Thu, 19 Dec 2024 18:23:23 +0530 Subject: [PATCH] fix: redirect public to public slash for logs ui --- src/start-server.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/*',