package
0.0.0-20250105235550-d74b9e249dd3
Repository: https://github.com/muchq/moonbase.git
Documentation: pkg.go.dev
# README
r3dr - Another URL Shortener
Shorten
POST /shorten
{
"longUrl": "https://www.google.com",
"expiresAt": 1728445884000
}
expiresAt
is optional.
Redirect
GET /r/{slug} -> 302
so we can collect stats
TODO
- vanity urls
- stats
- cache
- rate limits
- clean-up worker (archive/delete expired stuff)
- logs
- request tracing
Reusing expired slugs
Currently, there's no way to reclaim the nice short slugs associated with low ids even after the redirects expire.