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({ data: "https://gravatar.com/avatar/cb18420ea6d5e7d80748de33a18b6149?size=256" });
});
export default app.fetch;
hunty-bumpygreenantelope.web.val.run
August 5, 2024