A CLI for publishing standard.site documents to ATProto
sequoia.pub
standard
site
lexicon
cli
publishing
1import { Hono } from "hono";
2import auth from "./routes/auth";
3
4type Bindings = {
5 ASSETS: Fetcher;
6 SEQUOIA_SESSIONS: KVNamespace;
7 CLIENT_URL: string;
8};
9
10const app = new Hono<{ Bindings: Bindings }>();
11
12app.route("/oauth", auth);
13
14app.get("/api/health", (c) => {
15 return c.json({ status: "ok" });
16});
17
18app.all("*", (c) => {
19 return c.env.ASSETS.fetch(c.req.raw);
20});
21
22export default app;