시스템 업데이트트
This commit is contained in:
@@ -1,7 +1,58 @@
|
||||
// functions/index.js
|
||||
|
||||
const functions = require('firebase-functions');
|
||||
|
||||
exports.helloWorld = functions.https.onRequest((request, response) => {
|
||||
response.send("Hello from Firebase!");
|
||||
const { onRequest } = require("firebase-functions/v2/https");
|
||||
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user