61 lines
1.8 KiB
JavaScript
61 lines
1.8 KiB
JavaScript
const { onRequest } = require("firebase-functions/v2/https");
|
|
|
|
exports.helloWorld2 = onRequest((req, res) => {
|
|
const jsonData = {
|
|
"data": [
|
|
{
|
|
"planId": "P00000001",
|
|
"planTitle": "Data Labeling",
|
|
"planTeacher": "Sorry Lee",
|
|
"thumbnail": "https://img.youtube.com/vi/2qyCk5RN9LE/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000002",
|
|
"planTitle": "Robot Journalism",
|
|
"planTeacher": "Sorry Lee",
|
|
"thumbnail": "https://img.youtube.com/vi/wUrABUiSydk/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000003",
|
|
"planTitle": "marketing_basic",
|
|
"planTeacher": "Ovais Ahmad",
|
|
"thumbnail": "https://img.youtube.com/vi/tgUocrkP8Es/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000004",
|
|
"planTitle": "motion graphic_basic",
|
|
"planTeacher": "Motion Grapher",
|
|
"thumbnail": "https://img.youtube.com/vi/5PNotJrwkYY/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000005",
|
|
"planTitle": "Open Animation Portfolio",
|
|
"planTeacher": "Nastia",
|
|
"thumbnail": "https://img.youtube.com/vi/Pet-8Y87BEw/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000006",
|
|
"planTitle": "Excel Lesson",
|
|
"planTeacher": "Randy",
|
|
"thumbnail": "https://img.youtube.com/vi/RNqB5XHgivQ/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000007",
|
|
"planTitle": "Amazon affilate Marketing",
|
|
"planTeacher": "Ankur",
|
|
"thumbnail": "https://img.youtube.com/vi/ZzcgdNpw_cI/maxresdefault.jpg"
|
|
},
|
|
{
|
|
"planId": "P00000008",
|
|
"planTitle": "Korean Conversation",
|
|
"planTeacher": "Dayna Lee",
|
|
"thumbnail": "https://img.youtube.com/vi/be9e59e40bc/maxresdefault.jpg"
|
|
},
|
|
]
|
|
};
|
|
|
|
res.json(jsonData);
|
|
});
|
|
|
|
|