mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-22 23:41:07 +00:00
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
import { normalizeWebhookPath } from "openclaw/plugin-sdk/webhook-path";
|
|
import type { BlueBubblesAccountConfig } from "./types.js";
|
|
|
|
export { normalizeWebhookPath };
|
|
|
|
export const DEFAULT_WEBHOOK_PATH = "/bluebubbles-webhook";
|
|
|
|
export function resolveWebhookPathFromConfig(config?: BlueBubblesAccountConfig): string {
|
|
const raw = config?.webhookPath?.trim();
|
|
if (raw) {
|
|
return normalizeWebhookPath(raw);
|
|
}
|
|
return DEFAULT_WEBHOOK_PATH;
|
|
}
|