Skip to content

Commit 1598e70

Browse files
committed
testing meduom
1 parent 166c64b commit 1598e70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

netlify-functions/getBlogs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ exports.handler = async (event, context, callback) => {
88
try{
99
console.log("Inside try block");
1010
const response = await axios.get(`${mediumURL}`);
11+
console.log("after the call to medium api");
1112
const data = response.data;
1213
xml2js.parseString(data, (err, result) => {
14+
console.log("Inside xml2js API callback");
1315
const sendthis = result.rss.channel[0].item.slice(0, 3)
1416
callback(null, {
1517
statusCode: 200,

0 commit comments

Comments
 (0)