Support redirects?
maheshsundaram opened this issue · comments
This may already be possible and I haven't yet figured out how. I want to redirect on certain routes. E.g.
serve({
"/": () => {}, // Redirect to /redirect
"/redirect": () => {},
});
Oops, I see - "/": (req) => Response.redirect("path", 302)