From cf89be2a48f020c9449f4ee482579f7c086acab8 Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Thu, 28 Sep 2023 19:26:34 +0200 Subject: [PATCH] fix: redirect shortened 'a' URLs (#65) --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 8b16302..d88a036 100644 --- a/main.go +++ b/main.go @@ -51,6 +51,7 @@ func main() { r.POST("/", routes.PostHome) r.GET("/a/:id", routes.RedirectShortenedOverflowURL) + r.GET("/q/:id", routes.RedirectShortenedOverflowURL) r.GET("/questions/:id", func(c *gin.Context) { // redirect user to the question with the title