@xtandard/links/elysia2
Elysia 2 adapter: the same surface as @xtandard/links/elysia
(linksPanel(), the typed linksElysia() plugin and linksRedirect()),
built against Elysia 2 and @elysia/eden.
import { … } from "@xtandard/links/elysia2";Functions
Section titled “Functions”| Name | Summary |
|---|---|
linksElysia |
Typed Elysia plugin exposing the admin API so the Eden client can call it with full path/method/param typing. Routes are declared for the typed surface; every handler delegates to the shared fetch pipeline (auth, authorization, viewer scoping, error mapping reused). A catch-all also serves the bundled UI. The panel’s core is on plugin.decorator.linksCore. |
linksRedirect |
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(), …). |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
LinksElysiaPlugin |
The typed plugin linksElysia returns: an Elysia instance whose route table (every admin route with its params and body schema) is what Eden treaty infers from typeof app. |