refactor: modularize into core/events/formatters/drivers

This commit is contained in:
RhenCloud committed 2026-08-03 03:36:36 +08:00
1 parent 7b341ff9f4
commit 0af6b9a4b8
62 files changed
+2430 -2015

No files matched your search

+10 -9
View File
@@ -1,15 +1,16 @@
import { Hono } from "hono";
import type { Env } from "./types";
import { verifySignature, parseEvent } from "./webhook";
import { dispatchEvent } from "./discord";
import { handleInteractionRequest } from "./discord-interactions";
import { createOAuthRoutes } from "./oauth-routes";
import { createActionRoutes } from "./action-routes";
import { createAdminRoutes } from "./admin-routes";
import { createLegalRoutes } from "./legal-routes";
import { createHomeRoutes } from "./home-routes";
import { verifySignature } from "./events/verify";
import { parseEvent } from "./events/parse";
import { dispatchEvent } from "./core/dispatch";
import { handleInteractionRequest } from "./drivers/discord/interactions";
import { createOAuthRoutes } from "./web/oauth-routes";
import { createActionRoutes } from "./web/action-routes";
import { createAdminRoutes } from "./web/admin-routes";
import { createLegalRoutes } from "./web/legal-routes";
import { createHomeRoutes } from "./web/home-routes";
import { loadConfig } from "./config";
import { log } from "./log";
import { log } from "./lib/log";
const MAX_BODY_SIZE = 1024 * 1024;