Fastify app URL shortener
[url]/api/shorturl/new
and I will receive a shortened URL in the JSON response. Example : {"original_url":"https://www.google.com","short_url":2}
http(s)://www.example.com(/more/routes)
format, the JSON response will contain an error like {"error":"invalid URL"}
.POST [url]/api/shorturl/new - body (urlencoded) : url=https://www.google.com
[url]/api/shorturl/2