dipan004 commited on
Commit
7b448c3
·
verified ·
1 Parent(s): f8b4123

Update backend/routes/routes.go

Browse files
Files changed (1) hide show
  1. backend/routes/routes.go +2 -2
backend/routes/routes.go CHANGED
@@ -12,6 +12,6 @@ func Setup(app *fiber.App, transform *handlers.TransformHandler, redirect *handl
12
  api.Post("/transform", transform.Transform)
13
  api.Get("/stats/:slug", redirect.Stats)
14
 
15
- // Redirect under /r/ prefix avoids HuggingFace top-level path interception
16
- app.Get("/r/:slug", redirect.Redirect)
17
  }
 
12
  api.Post("/transform", transform.Transform)
13
  api.Get("/stats/:slug", redirect.Stats)
14
 
15
+ // catch-all slug redirectmust be last
16
+ app.Get("/:slug", redirect.Redirect)
17
  }