Add redirect endpoint for shortened urls with answer id (#105)

This commit is contained in:
Achraf RRAMI 2024-04-06 04:45:06 +00:00 committed by GitHub
parent 07d819a849
commit 6d2830fcc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,3 @@
package config
var Version = "1.12.0"
var Version = "1.12.1"

View File

@ -51,6 +51,7 @@ func main() {
r.POST("/", routes.PostHome)
r.GET("/a/:id", routes.RedirectShortenedOverflowURL)
r.GET("/a/:id/:answerId", routes.RedirectShortenedOverflowURL)
r.GET("/q/:id", routes.RedirectShortenedOverflowURL)
r.GET("/q/:id/:answerId", routes.RedirectShortenedOverflowURL)