mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-18 21:12:08 +00:00
Add redirect endpoint for shortened urls with answer id (#105)
This commit is contained in:
parent
07d819a849
commit
6d2830fcc2
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,3 @@
|
|||
package config
|
||||
|
||||
var Version = "1.12.0"
|
||||
var Version = "1.12.1"
|
||||
|
|
1
main.go
1
main.go
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue