mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
- add feishu_links D1 table and link store helpers - implement X-Lark-Signature verification, url_verification, /gh login|logout|comment|merge|close and card.action.trigger Merge/Close - render interactive cards with clickable title link, inline links and callback buttons (no whole-card card_link) - bind Feishu account in OAuth callback - document event subscription and required scopes
14 lines
482 B
TypeScript
14 lines
482 B
TypeScript
import { readRawBody } from "h3";
|
|
import { handleFeishuWebhookRequest } from "../../lib/drivers/feishu/updates";
|
|
import { cfEnv, rawRequest } from "../../lib/cf";
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const source = rawRequest(event);
|
|
const body = await readRawBody(event, "utf8");
|
|
const request = new Request(source.url, {
|
|
method: source.method,
|
|
headers: source.headers,
|
|
body,
|
|
});
|
|
return handleFeishuWebhookRequest(request, cfEnv(event));
|
|
});
|