Problem Statement:
Design a URL shortener that maps long URLs to short codes and supports:
Custom short URLs.
Expiration policies (e.g., delete after 7 days).
Efficient lookups.
POST API :
curl --location 'http://localhost:3001/api/url'
--header 'Content-Type: application/json'
--data '{
"longUrl": "https://bytebytego.com/courses/system-design-interview/design-a-url-shortener",
"customAlias": "testing"
}'
GET API : http://localhost:3001/testing