package
2.27.0+incompatible
Repository: https://github.com/aden-q/short-url.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
@Summary RedirectHandler redirects a short URL to a long URL @Produce json @Success 301 {object} model.URL "long URL" @Failure 400 {string} string "Invalid URL" @Failure 404 {string} string "URL not found" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/{shortURL} [get].
short URL godoc @Summary ShortenHandler shortens a long URL @Produce json @Param longURL query string true "long URL" @Success 200 {object} model.URL "short URL" @Failure 400 {string} string "Invalid URL" @Failure 500 {string} string "Internal Server Error" @Router /api/v1/shorten [post].