fix: redirect shortened 'a' URLs (#65)
This commit is contained in:
parent
dcf0805334
commit
cf89be2a48
1
main.go
1
main.go
@ -51,6 +51,7 @@ func main() {
|
|||||||
r.POST("/", routes.PostHome)
|
r.POST("/", routes.PostHome)
|
||||||
|
|
||||||
r.GET("/a/:id", routes.RedirectShortenedOverflowURL)
|
r.GET("/a/:id", routes.RedirectShortenedOverflowURL)
|
||||||
|
r.GET("/q/:id", routes.RedirectShortenedOverflowURL)
|
||||||
|
|
||||||
r.GET("/questions/:id", func(c *gin.Context) {
|
r.GET("/questions/:id", func(c *gin.Context) {
|
||||||
// redirect user to the question with the title
|
// redirect user to the question with the title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user