import elysia from "elysia";
import { sendFCMNotificationMany } from "../../../../../../xsendMany";


const ApiV2 = new elysia({
   prefix: "/api/mobile/fcm"
})
   .get("/", async () => {
      await sendFCMNotificationMany({
         token: [
            'c89yuexsS_uc1tOErVPu5a:APA91bEb6tEKXAfReZjFVJ2mMyOzoW_RXryLSnSJTpbIVV3G0L_DCNkLuRvJ02Ip-Erz88QCQBAt-C2SN8eCRxu3-v1sBzXzKPtDv-huXpkjXsyrkifqvUo',
            'cRz96GHKTRaQaRJ35e8Hxa:APA91bEUSxE0VPbqKSzseQ_zGhbYsDofMexKykRw7o_3z2aPM9YFmZbeA2enrmb3qjdZ2g4-QQtiNHAyaZqAT1ITOrwo9jVJlShTeABmEFYP5GLEUZ3dlLc',
            'gagal_device1',
            'gagal_device2'
         ],
         title: "Judul Notifikasi Pengumuman Elysia",
         body: "Pengumuman untuk perangkat Elysia",
         data: { id: "cm1eqwkwj00067j2bzejyh9u7", category: "division", content: "cm1eqwkvu00017j2b8qnisp9g" }
      })
      return {
         data: "success elysia"
      };
   })


export const GET = ApiV2.handle;