URL Shortener Microservice

Description

This microservice allows you to input a URL and outputs a lookup number to be used with a shortened URL.
This new URL will redirect to the original URL you entered.
This microservice is similar to what bit.ly or TinyURL offer.

Instructions

Add "/new/" in the address bar, followed by the complete address of an actual website.
For example, add "/new/http://google.com" to the end of this page's URL and hit the enter key.

This will return a lookup number that is associated with the web address you entered.
Take that number and paste it at the end of this page's URL along with "/go/" at the end.
For example, add "/go/7" into your address bar and hit enter to see the redirect in action!

Example URLs

Adding a new URL: new/http://google.com

Using the shortened URL: go/7