From 4df2810607963c6b7389d6cd7f8aca44d210a298 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 13 Jan 2026 20:03:20 -0500 Subject: [PATCH] chore: removed admin route --- packages/server/src/index.ts | 10 +++------- packages/server/src/routes/index.ts | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index 134831c..649fce6 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -1,7 +1,7 @@ import { Hono } from "hono"; import { cors } from "hono/cors"; import type { Bindings } from "./types"; -import { health, webhook, feed, stats, records, admin } from "./routes"; +import { health, webhook, feed, stats, records } from "./routes"; import { processDocument } from "./utils"; const app = new Hono<{ Bindings: Bindings }>(); @@ -15,7 +15,7 @@ app.route("/webhook", webhook); app.route("/feed", feed); app.route("/stats", stats); app.route("/records", records); -app.route("/admin", admin); +//app.route("/admin", admin); // Legacy alias: /feed-raw -> /feed/raw app.get("/feed-raw", async (c) => { @@ -49,11 +49,7 @@ app.notFound((c) => { // Export for Cloudflare Workers export default { fetch: app.fetch, - async scheduled( - event: ScheduledEvent, - env: Bindings, - ctx: ExecutionContext, - ) { + async scheduled(event: ScheduledEvent, env: Bindings, ctx: ExecutionContext) { const batchSize = 50; // Select stale documents const { results } = await env.DB.prepare( diff --git a/packages/server/src/routes/index.ts b/packages/server/src/routes/index.ts index 5fbf8c4..a567fa7 100644 --- a/packages/server/src/routes/index.ts +++ b/packages/server/src/routes/index.ts @@ -3,4 +3,4 @@ export { default as webhook } from "./webhook"; export { default as feed } from "./feed"; export { default as stats } from "./stats"; export { default as records } from "./records"; -export { default as admin } from "./admin"; +//export { default as admin } from "./admin"; -- 2.51.2