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 |