Loading...
Loading...
Compare original and translation side by side
RegExpRouterRegExpRouterimport { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => c.text("Hello Hono!"));
app.get("/user/:name", (c) => {
const name = c.req.param("name");
return c.json({ message: `Hello ${name}!` });
});
export default app;import { Hono } from "hono";
const app = new Hono();
app.get("/", (c) => c.text("Hello Hono!"));
app.get("/user/:name", (c) => {
const name = c.req.param("name");
return c.json({ message: `Hello ${name}!` });
});
export default app;RequestResponseRequestResponseawait next()await next()fsfs