1
2
3
4
5
6
7
import { denoServer } from "https://esm.town/v/pomdtr/deno_server?v=8";
import nhttp from "npm:nhttp-land@1";
const app = nhttp();
app.get("/", () => "Hello from nhttp");
app.get("/cat", () => ({ name: "cat" }));
export default denoServer(app.handle);
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.