1
0
mirror of https://github.com/openfaas/faas.git synced 2025-06-27 01:03:26 +00:00
Files
faas/sample-functions/BaseFunctions/node/handler.js

16 lines
225 B
JavaScript

"use strict"
let getStdin = require('get-stdin');
let handler = require('./handler');
let handle = (req) => {
console.log(req);
};
getStdin().then(val => {
handle(val);
}).catch(e => {
console.error(e.stack);
});