import { createRouteRedirect } from "https://deno.land/x/keywork@v6.2.1/router/functions/createRouteRedirect.ts";
A route request handler for redirecting requests.
Parameters
destinationURL: string | URL
optional
statusCode: ResponseRedirectStatus = [UNSUPPORTED]Returns
The incoming request handler.
Creating a Worker that just redirects incoming requests.
const redirectToExample = new RedirectHandler('https://example.com')
export default redirectToExample