mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2024-12-06 19:16:43 +01:00
Add redirect endpoint for shortened urls with answer id (#105)
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
package config
|
||||
|
||||
var Version = "1.12.0"
|
||||
var Version = "1.12.1"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user