chore: removed admin route
4df28106
2 file(s) · +4 −8
| 1 | 1 | import { Hono } from "hono"; |
|
| 2 | 2 | import { cors } from "hono/cors"; |
|
| 3 | 3 | import type { Bindings } from "./types"; |
|
| 4 | - | import { health, webhook, feed, stats, records, admin } from "./routes"; |
|
| 4 | + | import { health, webhook, feed, stats, records } from "./routes"; |
|
| 5 | 5 | import { processDocument } from "./utils"; |
|
| 6 | 6 | ||
| 7 | 7 | const app = new Hono<{ Bindings: Bindings }>(); |
|
| 15 | 15 | app.route("/feed", feed); |
|
| 16 | 16 | app.route("/stats", stats); |
|
| 17 | 17 | app.route("/records", records); |
|
| 18 | - | app.route("/admin", admin); |
|
| 18 | + | //app.route("/admin", admin); |
|
| 19 | 19 | ||
| 20 | 20 | // Legacy alias: /feed-raw -> /feed/raw |
|
| 21 | 21 | app.get("/feed-raw", async (c) => { |
|
| 49 | 49 | // Export for Cloudflare Workers |
|
| 50 | 50 | export default { |
|
| 51 | 51 | fetch: app.fetch, |
|
| 52 | - | async scheduled( |
|
| 53 | - | event: ScheduledEvent, |
|
| 54 | - | env: Bindings, |
|
| 55 | - | ctx: ExecutionContext, |
|
| 56 | - | ) { |
|
| 52 | + | async scheduled(event: ScheduledEvent, env: Bindings, ctx: ExecutionContext) { |
|
| 57 | 53 | const batchSize = 50; |
|
| 58 | 54 | // Select stale documents |
|
| 59 | 55 | const { results } = await env.DB.prepare( |
|
| 3 | 3 | export { default as feed } from "./feed"; |
|
| 4 | 4 | export { default as stats } from "./stats"; |
|
| 5 | 5 | export { default as records } from "./records"; |
|
| 6 | - | export { default as admin } from "./admin"; |
|
| 6 | + | //export { default as admin } from "./admin"; |