Skip to content

emb715/short-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Made with love in Deno

Create a short URL and redirect

Working on shioo.deno.dev

Example:

redirect to google https://shioo.deno.dev/NzpCPjVUsB

Configuration

Add to .env file

  • API_KEY
  • SENTRY_KEY

Endpoints

POST /new

headers: {
  apiKey: 'mySecretKey'
}
body: {
  "url": "https://google.com"
}

Response

{
    "id": "2A8Pb0CVuI",
    "url": "https://localhost:8000/2A8Pb0CVuI"
}

GET /:id

302 redirect or 404 not found

Dependencies

  • Deno
  • Oak
  • Zod
  • Sentry

TODO

  • Add Zoic (Cache layer)
  • Add analytics?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published