-
I can pass a URL as a parameter and I will receive a shortened URL in the JSON response.
-
When I visit that shortened URL, it will redirect me to my original link.
- http://localhost:5000/new/https://www.google.com
- http://localhost:5000/new/http://freecodecamp.com/news
If you want to pass a site that doesn't exist (or an invalid url) for some reason you can do:
{ "original_url": "http://freecodecamp.com/", "short_url": "http://localhost:5000/0" }
https://fbertone-fcc-urls.herokuapp.com/
- Add tests
URL Shortener project for Free Code Camp Back End Certification.
###License MIT