Skip to content

Commit

Permalink
update js temp
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranRoche committed Apr 23, 2019
1 parent 5562443 commit 12910ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/function_types_javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ CMD [ "npm", "start" ]`
func createJSMain(function *Function){
jSTemplate := `const r3x = require('@rubixfunctions/r3x-js-sdk')
let schema
/**
* Simply pass your logic to 'r3x execute'
*/
r3x.execute(function(){
let response = {'message' : 'Hello r3x function'}
return response
}, schema)`
})`
createFile(function, jSTemplate, "r3x-func.js")
}

Expand Down

0 comments on commit 12910ee

Please sign in to comment.