POST /shorten
{
"longUrl": "https://www.google.com",
"expiresAt": 1728445884000
}
expiresAt
is optional.
GET /r/{slug} -> 302
so we can collect stats
- vanity urls
- stats
- cache
- rate limits
- clean-up worker (archive/delete expired stuff)
- logs
- request tracing
Currently, there's no way to reclaim the nice short slugs associated with low ids even after the redirects expire.