Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Latest commit

 

History

History
21 lines (12 loc) · 643 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 643 Bytes

personal-shortening

Build Status

A personal URL shortening service

How it works

When a request is received it checks the URL.

If it the pathname is on data/urls.json redirect to the expected URL.

If it's not append the pathname to the REDIRECT_URL env variable.

Add new short URL

Open data/urls.json and add a new key whose value is the target URL.