Back

Version 21

8/31/2023
export const api = async (req: Request) => {
const { Hono } = await import("npm:hono");
const app = new Hono();
app.get("/", (c) =>
c.json({
ok: true,
message: "Hello Hono!",
}));
app.post("/", (c) =>
c.json({
ok: true,
message: "Hello Hono Post!",
}));
app.put("/task/:id", async (c) => {
const body = await c.req.json();
const id = await c.req.param().id;
const data = await @ayrtonlacerda.updateTaskAsana(id, body);
return c.json({
ok: true,
data: data,
});
});
return app.fetch(req);
};
ayrtonlacerda-api.web.val.run
Updated: October 23, 2023