This file contains 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
var $fh = require('fh-mbaas-api'); | |
var options = { | |
"act": "create", | |
"type": "myFirstEntity", | |
"fields": { | |
"name": world | |
} | |
}; |
This file contains 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
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var cors = require('cors'); | |
const LambdaMockContext = require('aws-lambda-mock-context'); | |
const Alexa = require('alexa-sdk'); | |
function alexaRoute() { | |
var alexa = new express.Router(); | |
alexa.use(cors()); |
This file contains 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
{ | |
"name": "helloworld-cloud", | |
"version": "0.2.0", | |
"dependencies": { | |
"alexa-sdk": "^1.0.9", | |
"aws-lambda-mock-context": "^3.1.0", | |
"body-parser": "~1.0.2", | |
"cors": "~2.2.0", | |
"express": "~4.0.0", | |
"fh-mbaas-api": "6.1.5", |
This file contains 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
var mbaasApi = require('fh-mbaas-api'); | |
var express = require('express'); | |
var mbaasExpress = mbaasApi.mbaasExpress(); | |
var cors = require('cors'); | |
// list the endpoints which you want to make securable here | |
var securableEndpoints; | |
securableEndpoints = ['/hello', '/feeds', '/alexa']; | |
var app = express(); |
NewerOlder