tmcw-elysiaexample.web.val.run
Readme

Elysia example

This is how you can use Elysia with Val Town.

1
2
3
4
5
6
export const elysiaExample = async (req) => {
const { Elysia } = await import("https://esm.sh/elysia@0.7.15");
const app = new Elysia()
.get("/", () => "Hello Elysia");
return app.fetch(req);
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
1
nbbaier avatar

Neat! Thanks!

v8
October 23, 2023