Add Signal and Whatsapp Docker CI
This commit is contained in:
parent
b8ff61265b
commit
6305a8b0bc
12 changed files with 99 additions and 8 deletions
|
|
@ -82,6 +82,20 @@ export class Service {
|
|||
return NextResponse.json({ response: "ok" });
|
||||
}
|
||||
|
||||
async receiveMessage(
|
||||
req: NextRequest,
|
||||
{ params: { service, token } }: ServiceParams,
|
||||
): Promise<NextResponse> {
|
||||
const message = await req.json();
|
||||
const worker = await getWorkerUtils();
|
||||
await worker.addJob(`${service}/receive-${service}-message`, {
|
||||
token,
|
||||
message,
|
||||
});
|
||||
|
||||
return NextResponse.json({ response: "ok" });
|
||||
}
|
||||
|
||||
async handleWebhook(_req: NextRequest): Promise<NextResponse> {
|
||||
return NextResponse.error() as any;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue