createRedirectHandler
function createRedirectHandler(options): RedirectHandler;Defined in: src/redirect.ts:221
Create the redirect handler.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
RedirectHandlerOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createRedirectHandler } from "@xtandard/links";
const redirects = createRedirectHandler({ core });Bun.serve({ fetch: (req) => redirects.fetch(req) });