const { onRequest } = require("firebase-functions/v2/https");


const jsonData = {
  data:
    [
      {
        "plan id": "P00000001",
        "plane name": "Plane 1",
        "thumbnail": "https://img.youtube.com/vi/atbxV3EZ7is/maxresdefault.jpg"
      }
      ,
      {
        "plan id": "P00000002",
        "plane name": "Plane 2",
        "thumbnail": "https://img.youtube.com/vi/wUrABUiSydk/maxresdefault.jpg"
      }
      ,
      {
        "plan id": "P00000003",
        "plane name": "Plane 3",
        "thumbnail": "https://img.youtube.com/vi/tgUocrkP8Es/maxresdefault.jpg"
      },
      {
        "plan id": "P00000004",

        "plane name": "Plane 4",
        "thumbnail": "https://img.youtube.com/vi/4qCfvoQi758/maxresdefault.jpg"
      },
      {
        "plan id": "P00000005",

        "plane name": "Plane 5",
        "thumbnail": "https://img.youtube.com/vi/kL8TGz_kM8U/maxresdefault.jpg"
      },
      {
        "plan id": "P00000006",

        "plane name": "Plane 6",
        "thumbnail": "https://img.youtube.com/vi/IuDqKgGsEA4/maxresdefault.jpg"
      },
      {
        "plan id": "P00000007",
        "plane name": "Plane 7",
        "thumbnail": "https://img.youtube.com/vi/pfFSyoduDe4/maxresdefault.jpg"
      },
      {
        "plan id": "P00000008",

        "plane name": "Plane 8",
        "thumbnail": "https://img.youtube.com/vi/jj5QK7gcJTI/maxresdefault.jpg"
      },
      {
        "plan id": "P00000009",

        "plane name": "Plane 9",
        "thumbnail": "https://img.youtube.com/vi/U15Eqg_kDCU/maxresdefault.jpg"
      },
      {
        "plan id": "P00000010",
        "plane name": "Plane 10",

        "thumbnail": "https://img.youtube.com/vi/ea4J80ybzqY/maxresdefault.jpg"
      },
      {
        "plan id": "P00000011",

        "plane name": "Plane 11",
        "thumbnail": "https://img.youtube.com/vi/yFXHull0s0I/maxresdefault.jpg"
      },
      {
        "plan id": "P00000012",

        "plane name": "Plane 12",
        "thumbnail": "https://img.youtube.com/vi/N-xuqy6x1Bw/maxresdefault.jpg"
      },
      {
        "plan id": "P00000013",
        "plane name": "Plane 13",
        "thumbnail": "https://img.youtube.com/vi/HvkmJ3Ec-hU/maxresdefault.jpg"
      },
      {
        "plan id": "P00000014",
        "lesson url": "https://www.youtube.com/watch?v=BB6HiXvtcMQ&list=PLgGbWId6zgaXt4qt5CCLlZRTbyWsQKAPx&index=3",
        "thumbnail": "https://img.youtube.com/vi/BB6HiXvtcMQ/maxresdefault.jpg"
      },
      {
        "plan id": "P00000015",
        "plane name": "Plane 14",
        "thumbnail": "https://img.youtube.com/vi/yrt2qxu3ltc/maxresdefault.jpg"
      },
      {
        "plan id": "P00000016",
        "plane name": "Plane 16",
        "thumbnail": "https://img.youtube.com/vi/Pet-8Y87BEw/maxresdefault.jpg"
      }
    ]
};



exports.helloWorld3 = onRequest((req, res) => {

  let responseData;
  responseData = jsonData;

  res.status(200).json(responseData);
});



