Files
wajs-server/src/server/routes/wa_hook_route.ts
bipproduction 66d3df0a12 tambahan
2025-10-20 15:59:35 +08:00

24 lines
503 B
TypeScript

import Elysia, { t } from "elysia";
const WaHookRoute = new Elysia({
prefix: "/wa-hook",
tags: ["WhatsApp Hook"],
})
.post("/hook", async (ctx) => {
const { body } = ctx.body;
console.log(body);
return {
success: true,
message: "WhatsApp Hook received"
};
}, {
body: t.Any(),
detail: {
summary: "WhatsApp Hook",
description: "WhatsApp Hook",
},
})
export default WaHookRoute;