Skip to content

Commit a16f7ed

Browse files
authored
Update hello.js
1 parent 48b1e8a commit a16f7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netlify/functions/hello.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
//const axios = require('axios');
99
exports.handler = async event => {
10-
//const response = await axios.get('https://ithelp.ithome.com.tw/articles/10315665');
10+
const response = await axios.get('https://ithelp.ithome.com.tw/articles/10315665');
1111
const subject = event.queryStringParameters.name || 'World'
1212
return {
1313
statusCode: 200,
14-
body: `Hello ${subject}! `,
14+
body: `Hello ${subject}! ${response.data} `,
1515
}
1616
}

0 commit comments

Comments
 (0)