Send a post request to http://localhost:4700 with the follwing data
{"longURL": "https://www.google.com/"} You will recieve a response looking something like {"longURL":"https://www.google.com/","shortenedUrl":"http://localhost:4700/MTM5MzQ3"}
Simply Enter the shortened URL in your browser to be navigated to Original ULR To follow the above example, just enter http://localhost:4700/MTM5MzQ3 in your browser and you will be redirected to https://www.google.com/
Note:
- Hopefully, I have completed the assigement expcept the BONUS points. Please let me know if I have missed anything.
- I will be aiming to complete BONUS points but till then I request you to judge the completed work.