async function pairDevice(req, res) {
    try {
      await matterHandler.pairDevice(req.body.pairing_code);
      res.json({ success: true });
    } catch (e) {
      res.status(400).json({ error: e.message });
    }
  }
@api {post} /api/v1/service/matter/pair-device Pair a device
@apiName pairDevice
@apiGroup Matter