권은령

Update app.js

Showing 1 changed file with 2 additions and 6 deletions
......@@ -63,6 +63,7 @@ const client = new line.Client(config);
// about the middleware, please refer to doc
// Creates a client
/* google-api
var vision = require('google-vision-api-client');
var requtil = vision.requtil;
......@@ -79,8 +80,6 @@ var jsonfile = '/home/ubuntu/a/LINEBOT/googlevisionapikey.json';
vision.init(jsonfile);
//Build the request payloads
var d = requtil.createRequests().addRequest(
requtil.createRequest('/home/ubuntu/a/LINEBOT/photo/Fancy-TWICE.jpg')
......@@ -92,9 +91,7 @@ if(e) console.log('ERROR:', e);
console.log(JSON.stringify(d));
});
*/
app.post('/webhook', line.middleware(config), (req, res) => {
......@@ -175,4 +172,3 @@ function handleEvent(event) {
});
}
......