mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-17 16:41:42 +00:00
Revert "fix: remove reduce/ from request URI"
This reverts commit d8bf101527.
This commit is contained in:
@@ -147,8 +147,8 @@ func main() {
|
||||
return c.String(http.StatusOK, "Backend is running alright.\n")
|
||||
})
|
||||
|
||||
e.POST("/shorten", shortenURL)
|
||||
e.GET("/:id", fetchLongURL)
|
||||
e.POST("/reduce/shorten", shortenURL)
|
||||
e.GET("/reduce/:id", fetchLongURL)
|
||||
|
||||
e.Logger.Fatal(e.Start(":8080"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user