Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

Fetch Template

Example template to quickly get started with a backend for Fetch in Framer.

1
2
3
4
5
6
7
8
9
10
11
12
import { Hono } from "npm:hono";
import { cors } from "npm:hono/cors";
const app = new Hono();
app.use(cors());
app.get("/", async (c) => {
return c.json({ text: "Hello World" });
});
export default app.fetch;
komolkin-fetch.web.val.run
August 6, 2024