Created
June 25, 2020 19:55
-
-
Save crush-157/009a9977795f9474b3b35d3d67260f90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fdk=require('@fnproject/fdk'); | |
const wasm=require('@crush-157/rust-fn'); | |
fdk.handle(function(input){ | |
let name = 'World'; | |
if (input.name) { | |
name = input.name; | |
} | |
return {'message': wasm.hello_string(name) } | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment