mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
14 lines
216 B
Ruby
14 lines
216 B
Ruby
require 'json'
|
|
|
|
payload = STDIN.read
|
|
if payload != ""
|
|
payload = JSON.parse(payload)
|
|
|
|
# payload contains checks
|
|
if payload["input"]
|
|
puts payload["input"]
|
|
end
|
|
end
|
|
|
|
raise "Something went terribly wrong!"
|