Skip to content

linksRedirect

function linksRedirect(options): Elysia<"", {
}, {
}, {
}, {
}, {
}, {
}> & object;

Defined in: src/adapters/elysia.ts:154

Plugin answering short links before routing (onRequest); requests that are not short links continue to your routes. handler is the underlying redirect handler (core, close(), …).

Elysia 1.x only — for Elysia 2 import from @xtandard/links/elysia2.

Parameter Type
options LinksRedirectInput

Elysia<"", { }, { }, { }, { }, { }, { }> & object