Update backend/routes/routes.go
Browse files- 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 |
-
//
|
| 16 |
-
app.Get("/
|
| 17 |
}
|
|
|
|
| 12 |
api.Post("/transform", transform.Transform)
|
| 13 |
api.Get("/stats/:slug", redirect.Stats)
|
| 14 |
|
| 15 |
+
// catch-all slug redirect — must be last
|
| 16 |
+
app.Get("/:slug", redirect.Redirect)
|
| 17 |
}
|