Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {
authMiddlewareCookie,
userActionsDisplay,
type HonoEnv,
} from "https://esm.town/v/postpostscript/authMiddleware";
import { Layout } from "https://esm.town/v/postpostscript/Layout";
import { Hono } from "npm:hono";
const app = new Hono<HonoEnv>();
app.use("*", authMiddlewareCookie());
app.get("/", (c) => c.html(Layout`${userActionsDisplay(c.get("auth"))}` as string));
export default app.fetch;
postpostscript-authidexamplecookieprivate.web.val.run
March 6, 2024