backend code refactoring

This commit is contained in:
GotPPay
2018-01-13 14:57:41 +01:00
parent ff7e564d2e
commit 7f56a28509
7 changed files with 147 additions and 135 deletions

View File

@@ -17,19 +17,18 @@ var alexaApp = new alexa.app ('saburly'); // this means we still work with one s
module.exports = {
init: function (express) {
alexaApp.express ({
expressApp: express,
// verifies requests come from amazon alexa. Must be enabled for production.
// You can disable this if you're running a dev environment and want to POST
// things to test behavior. enabled by default.
checkCert: false,
// sets up a GET route when set to true. This is handy for testing in
// development, but not recommended for production. disabled by default
debug: true,
});
});
},
updateIntentsJSON: function () {