mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-21 06:19:14 +00:00
feat: add shortener processing for exchange /a/:id conventions
This commit is contained in:
parent
5cae6c460d
commit
12a8e80a6a
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -68,6 +68,8 @@ func main() {
|
||||||
})
|
})
|
||||||
exchangeRouter.GET("/q/:id/:answerId", routes.RedirectShortenedOverflowURL)
|
exchangeRouter.GET("/q/:id/:answerId", routes.RedirectShortenedOverflowURL)
|
||||||
exchangeRouter.GET("/q/:id", routes.RedirectShortenedOverflowURL)
|
exchangeRouter.GET("/q/:id", routes.RedirectShortenedOverflowURL)
|
||||||
|
exchangeRouter.GET("/a/:id/:answerId", routes.RedirectShortenedOverflowURL)
|
||||||
|
exchangeRouter.GET("/a/:id", routes.RedirectShortenedOverflowURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
r.GET("/questions/:id", func(c *gin.Context) {
|
r.GET("/questions/:id", func(c *gin.Context) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue