FreeCodeCamp API Basejump: URL Shortener Microservice

User stories:

  • 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.

Example creation usage:

[https://abrasive-yacht.glitch.me/new/https://www.google.com]

Example creation output

{ "original_url":"http://foo.com:80", "short_url":"https://abrasive-yacht.glitch.me/8170" }

Usage:

[https://abrasive-yacht.glitch.me/8170]

Will redirect to:

[https://www.google.com/]