BASE_URL (e.g., http://localhost:3000)GET /:shortCode.flowchart LR
start([Start]) --> api[API]
api -- query --> db[(Database)]
db -- return --> resp[API response]
resp --> finish([End])
Create a short URL mapping for an originalUrl with a fixed 10-day expiration.
{
"originalUrl": "<https://google.com/>"
}
{
"shortCode": "ab12cd",
"shortUrl": "<https://localhost:3000/ab12cd>",
"expiresAt": "2026-05-30T10:00:00Z"
}
originalUrl must be present.http:// or https://).201 Created400 Bad Request