url-shortener/README.md
2026-06-11 18:49:06 +00:00

367 B

url-shortener

Express + PostgreSQL link shortener.

  • POST /api/links with {"url": "https://example.com"} returns a 7-char hash and short URL
  • GET /<hash> 302-redirects to the original URL and counts the hit
  • GET /api/links lists recent links with hit counts

Reads DATABASE_URL and PORT from the environment — EZKeel provides both at deploy time.