Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 604 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 604 Bytes

url-shortener

An URL shortener utilizing Express 4. This application can tie any URL to a shorter ID which can be used to access the link afterwards.

Usage

This application has the following interface:

POST /shorten

  • Parameter: URL encoded parameter link should contain an URL that should be shortened
  • Returns: ID for shortened link in plain text

GET /{id}

  • Returns: Redirects the user to the stored URL in case the ID is valid

About

This application is based on a barebones Node.js app by Heroku.