Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 626 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 626 Bytes

Shortener

Build Status

A URL shortener written in go

ENVIRONMENT_VARIABLE VALUE
SHORTENER_USER BasicAuth username
SHORTENER_PASSWORD BasicAuth password
DB_USER Database Username
DB_Pass Database Password
DB_NAME Database Name
DB_HOST Database Host
DB_PORT Database Port Number

METHOD PATH Description
Get /{slug} HTTP Redirect to resolved URL from db
POST /api Create slug/url pair on db {slug: string, url: string}
DELETE /api/{slug} Delete slug/url pair on db