From 1acc2f952cc32169b48cd19677ca910db5604dc5 Mon Sep 17 00:00:00 2001 From: Julien Herr Date: Thu, 21 May 2026 07:36:05 +0200 Subject: [PATCH] feat: mount /atom route in main app --- src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index ce91cc8..06c0e7d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import { Hono } from "hono"; import { handle as handleInbound } from "./routes/inbound"; import { handle as handleRSS } from "./routes/rss"; +import { handle as handleAtom } from "./routes/atom"; import { handle as handleAdmin } from "./routes/admin"; import { handle as handleEntry } from "./routes/entries"; import { handleCloudflareEmail } from "./lib/cloudflare-email"; @@ -102,6 +103,7 @@ app.use("*", async (c, next) => { // Group routes by functionality const api = new Hono(); const rss = new Hono(); +const atom = new Hono(); const entries = new Hono(); const admin = new Hono(); @@ -133,6 +135,9 @@ api.post("/inbound", handleInbound); // RSS feed routes (public) rss.get("/:feedId", handleRSS); +// Atom feed routes (public) +atom.get("/:feedId", handleAtom); + // Email entry HTML view (public) entries.get("/:feedId/:entryId", handleEntry); @@ -142,6 +147,7 @@ admin.route("/", handleAdmin); // Mount the route groups app.route("/api", api); app.route("/rss", rss); +app.route("/atom", atom); app.route("/entries", entries); app.route("/admin", admin);