Change the API route

This commit is contained in:
Arkaprabha Chakraborty
2024-08-06 01:26:23 +05:30
parent 65f113a90f
commit 321e83fbc9
3 changed files with 4 additions and 4 deletions

View File

@@ -90,8 +90,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"))
}