Add Signal auto-group creation

This commit is contained in:
Darren Clarke 2025-06-10 14:02:21 +02:00
parent a83907b4be
commit c8ccee7ada
7 changed files with 393 additions and 8 deletions

View file

@ -1,7 +1,10 @@
import { ServiceConfig } from "../lib/service";
const getQRCode = async (token: string): Promise<Record<string, string>> => {
const url = `/link/api/signal/bots/${token}`;
const basePath = window?.location?.pathname?.startsWith("/link")
? "/link"
: "";
const url = `${basePath}/api/signal/bots/${token}`;
const result = await fetch(url, { cache: "no-store" });
const { qr } = await result.json();