Revert "fix: remove reduce/ from request URI"

This reverts commit d8bf101527.
This commit is contained in:
Arkaprabha Chakraborty
2025-03-14 21:16:54 +05:30
parent d8bf101527
commit 25ead1d8bd
3 changed files with 4 additions and 4 deletions

View File

@@ -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"))
}