Skip to content

Commit

Permalink
run gs in lambda function #128
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Mar 30, 2024
1 parent 72df2ca commit cef3903
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
require("env2")(".env");
const debug = require("./lambda/debug.js");
const gs = require('./lib/');

exports.handler = function handler (event, context, callback) {
console.log(event);
console.log("Hi Friends!")
debug(event);
return callback(null, event);

const url = 'dwyl';
gs(url, function(err, data) {
console.log(' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ')
console.log(data);

return callback(null, event);
});
}

0 comments on commit cef3903

Please sign in to comment.