Skip to content

Commit

Permalink
Merge pull request #19 from rubixFunctions/remove-schema
Browse files Browse the repository at this point in the history
Restructure SDK
  • Loading branch information
ciaranRoche authored Apr 3, 2019
2 parents 34790a3 + 3fdf765 commit 5dcbff5
Show file tree
Hide file tree
Showing 13 changed files with 333 additions and 178 deletions.
11 changes: 7 additions & 4 deletions hello-r3x.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import * as r3x from './r3x'

// Leaving for local testing

let schema
console.log("Execute Started . . . ")
r3x.execute(function(input: any){
let response = {'message' : `${input.dictate}`}
let response;
if (input.person){
response = {'message' : `Hello ${input.person}`}
} else {
response = {'message' : `Hello RubiX`}
}
return response
}, schema)
})
Loading

0 comments on commit 5dcbff5

Please sign in to comment.