Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 725 Bytes

README.md

File metadata and controls

13 lines (12 loc) · 725 Bytes

meteor-shortener

A simple URL shortener built using Meteor.
Environment variables are specified in startup.js.

Notes:

  1. POST data must be sent as x-www-form-urlencoded
  2. It accepts requests only from origin matching RECEIVE_DOMAIN environment variable
  3. POST to /new with key=RECEIVE_KEY and url=URL for a link
  4. POST to /stats with key=RECEIVE_KEY and slug=xxxxx (shortened url extension) for stats
  5. POST to /delete with key=RECEIVE_KEY and slug=xxxxx to delete a link
  6. All POST responses are returned as JSON objects
  7. When accessing site directly, or when a link isn’t found, it redirects to REDIRECT_URL
  8. There is no URL validation in this code