An example of how to redirect using res.redirect
.
Run this example using:
deno run --allow-net --allow-read ./examples/redirect/index.ts
if have the repo cloned locally OR
deno run --allow-net --allow-read https://raw.githubusercontent.com/cmorten/opine/main/examples/redirect/index.ts
if you don't!