추천 함수 까지 추가가
This commit is contained in:
@@ -1,58 +1,7 @@
|
||||
const { onRequest } = require("firebase-functions/v2/https");
|
||||
const { helloWorld1 } = require("./helloWorld1");
|
||||
const { helloWorld2 } = require("./helloWorld2");
|
||||
const { helloWorld3 } = require("./helloWorld3");
|
||||
|
||||
exports.helloWorld = onRequest((req, res) => {
|
||||
const jsonData = {
|
||||
"casestudy_lessons": [
|
||||
{
|
||||
"lesson_id": "NZSKGBZA0YI8",
|
||||
"lesson_tag": "YouTube",
|
||||
"lesson_url": "https://www.youtube.com/watch?v=tgUocrkP8Es&list=PLv6KfiLx9P_1uHbOn0lNz06ZsXFRls893",
|
||||
"thumbnail": "https://img.youtube.com/vi/tgUocrkP8Es/maxresdefault.jpg"
|
||||
},
|
||||
{
|
||||
"lesson_id": "EIUQAOS19PO9",
|
||||
"lesson_tag": "YouTube",
|
||||
"lesson_url": "https://www.youtube.com/watch?v=F5XLuFlhINU&list=PLv6KfiLx9P_1uHbOn0lNz06ZsXFRls893&index=2",
|
||||
"thumbnail": "https://img.youtube.com/vi/F5XLuFlhINU/maxresdefault.jpg"
|
||||
},
|
||||
{
|
||||
"lesson_id": "W1E8UI5QEASQ",
|
||||
"lesson_tag": "YouTube",
|
||||
"lesson_url": "https://www.youtube.com/watch?v=pJ_X7yPI7Ow&list=PLv6KfiLx9P_1uHbOn0lNz06ZsXFRls893&index=3",
|
||||
"thumbnail": "https://img.youtube.com/vi/pJ_X7yPI7Ow/maxresdefault.jpg"
|
||||
},
|
||||
{
|
||||
"lesson_id": "J4XJNBZ45R7Y",
|
||||
"lesson_tag": "YouTube",
|
||||
"lesson_url": "https://www.youtube.com/watch?v=UaJFeOPtEx8&list=PLv6KfiLx9P_1uHbOn0lNz06ZsXFRls893&index=4",
|
||||
"thumbnail": "https://img.youtube.com/vi/UaJFeOPtEx8/maxresdefault.jpg"
|
||||
},
|
||||
{
|
||||
"lesson_id": "WC4DS2CXAWEQ",
|
||||
"lesson_tag": "YouTube",
|
||||
"lesson_url": "https://www.youtube.com/watch?v=LXsFOrgbg_o&list=PLv6KfiLx9P_0uFZ_xpwutLxndmeRmDYgD",
|
||||
"thumbnail": "https://img.youtube.com/vi/LXsFOrgbg_o/maxresdefault.jpg"
|
||||
},
|
||||
{
|
||||
"lesson_id": "OXD8FLUNG28O",
|
||||
"lesson_tag": "YouTube",
|
||||
"lesson_url": "https://www.youtube.com/watch?v=jjm2Aabb2EE&list=PLv6KfiLx9P_0uFZ_xpwutLxndmeRmDYgD&index=2",
|
||||
"thumbnail": "https://img.youtube.com/vi/jjm2Aabb2EE/maxresdefault.jpg"
|
||||
},
|
||||
{
|
||||
"lesson_id": "C9BPD0CCBZCU",
|
||||
"lesson_tag": "영상 ID를 찾을 수 없음",
|
||||
"lesson_url": null,
|
||||
"thumbnail": null
|
||||
},
|
||||
{
|
||||
"lesson_id": "4AUOR21NV8LI",
|
||||
"lesson_tag": "영상 ID를 찾을 수 없음",
|
||||
"lesson_url": null,
|
||||
"thumbnail": null
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
res.json(jsonData);
|
||||
});
|
||||
exports.helloWorld1 = helloWorld1;
|
||||
exports.helloWorld2 = helloWorld2;
|
||||
exports.helloWorld3 = helloWorld3;
|
||||
Reference in New Issue
Block a user