Skip to content

Commit

Permalink
Merge pull request #832 from Portkey-AI/fix/public-route-redirection
Browse files Browse the repository at this point in the history
fix: redirect public to public slash for logs ui
  • Loading branch information
VisargD authored Dec 19, 2024
2 parents d6b3d63 + 30514fe commit fd31c42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/start-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/*',
Expand Down

0 comments on commit fd31c42

Please sign in to comment.