Cloudflare-powered URL shortener.
pnpm install
pnpx wrangler publish
pnpx wrangler d1 execute redirector --file .\src\create.sql --remotecurl -X GET https://{your-domain}/add?url=https://example.com&expires=30expires is optional arg where you provided "age" in seconds (default 3 days)
curl -X GET https://{your-domain}/get?id={id}Returns useful information about the URL. (Expiration time, original URL)
curl -X GET https://{your-domain}/{id}Redirects to the original URL.