Get Started
Zeta is WinterCG compliant, meaning you can mount other standard server-side fetch functions on your app.
Sometimes, you need to mount other (request: Request) => MaybePromise<Response> functions to your app. For example, to include @aklinker1/aframe's utility to fetch static assets:
;
"/api/health", ...
In this case, fetchStatic() would be called when a request doesn't match any of the defined routes. You can also mount a fetch function at a specific path.
;
;
;
;
"/elysia", elysiaApp.fetch
"/hono", honoApp.fetch;
Here, we're mounting some fetch functions from other frameworks onto our app. You could also write your own:
;