tmcw-honoexample.web.val.run
Readme

Hono

Here's an example using the Hono server library with the Web API. It works great!

Server examples

1
2
3
4
5
6
import { Hono } from "npm:hono@3";
const app = new Hono();
app.get("/", (c) => c.text("Hello world!"));
app.get("/yeah", (c) => c.text("Routing!"));
export default app.fetch;
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
November 29, 2023