mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 12:06:37 +00:00
Adding CoffeeScript base example
Adding CoffeeScript base
This commit is contained in:
7
sample-functions/BaseFunctions/coffee/handler.coffee
Normal file
7
sample-functions/BaseFunctions/coffee/handler.coffee
Normal file
@ -0,0 +1,7 @@
|
||||
getStdin = require 'get-stdin'
|
||||
|
||||
handler = (req) -> console.log req
|
||||
|
||||
getStdin()
|
||||
.then (val) -> handler val
|
||||
.catch (e) -> console.error e.stack
|
Reference in New Issue
Block a user