Skip to content

timelessnesses/redirector

Repository files navigation

redirector

Cloudflare-powered URL shortener.

Deploy

pnpm install
pnpx wrangler publish
pnpx wrangler d1 execute redirector --file .\src\create.sql --remote

Add

curl -X GET https://{your-domain}/add?url=https://example.com&expires=30

expires is optional arg where you provided "age" in seconds (default 3 days)

Get

curl -X GET https://{your-domain}/get?id={id}

Returns useful information about the URL. (Expiration time, original URL)

Go

curl -X GET https://{your-domain}/{id}

Redirects to the original URL.

About

Cloudflare-powered URL shortener

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors