Create a short URL and redirect
Working on shioo.deno.dev
redirect to google https://shioo.deno.dev/NzpCPjVUsB
Add to .env file
- API_KEY
- SENTRY_KEY
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
- Deno
- Oak
- Zod
- Sentry
- Add Zoic (Cache layer)
- Add analytics?