import { handleInboundHook } from "./hooks"; import { handleIntegrationOAuth } from "./oauth"; export { INBOUND_HOOK_PREFIX } from "./hooks"; export async function handleIntegrationRoutes(request: Request, url: URL): Promise { if (!url.pathname.startsWith("/integrations/")) return null; return (await handleInboundHook(request, url)) ?? (await handleIntegrationOAuth(request, url)); }