mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-18 21:12:08 +00:00
fix: redirect shortened 'a' URLs (#65)
This commit is contained in:
parent
dcf0805334
commit
cf89be2a48
1 changed files with 1 additions and 0 deletions
1
main.go
1
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
|
||||
|
|
Loading…
Add table
Reference in a new issue