We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b1e8a commit a16f7edCopy full SHA for a16f7ed
netlify/functions/hello.js
@@ -7,10 +7,10 @@
7
8
//const axios = require('axios');
9
exports.handler = async event => {
10
- //const response = await axios.get('https://ithelp.ithome.com.tw/articles/10315665');
+ const response = await axios.get('https://ithelp.ithome.com.tw/articles/10315665');
11
const subject = event.queryStringParameters.name || 'World'
12
return {
13
statusCode: 200,
14
- body: `Hello ${subject}! `,
+ body: `Hello ${subject}! ${response.data} `,
15
}
16
0 commit comments