mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
refactor: modularize into core/events/formatters/drivers
This commit is contained in:
62 files changed
+2430
-2015
No files matched your search
+10
-9
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user