Skip to content

Commit

Permalink
[fix]: corrected the response of CreateLink to be in sync with docs (#…
Browse files Browse the repository at this point in the history
…103)

Signed-off-by: Varun Singh <[email protected]>
  • Loading branch information
VarunGitGood authored Mar 5, 2024
1 parent ac2142e commit f9e1091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux-mysql/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func CreateLink(store *sql.DB) http.HandlerFunc {
helpers.SendResponse(w, http.StatusInternalServerError, err.Error(), "", false)
return
}
link := "http://localhost:8080" + "/link/" + strconv.FormatInt(id, 10)
link := "http://localhost:8080" + "/links/" + strconv.FormatInt(id, 10)
helpers.SendResponse(w, http.StatusOK, "Converted", link, true)
}
}
Expand Down

0 comments on commit f9e1091

Please sign in to comment.