// These two lines are required to initialize Express in Cloud Code. express = require('express'); app = express(); // Global app configuration section app.set('views', 'cloud/views'); // Specify the folder to find templates app.set('view engine', 'ejs'); // Set the template engine app.use(express.bodyParser()); // Middleware for reading request body var alexaSkillsController = require('cloud/controllers/alexa-skills.controller.js'); // Invocation endpoint: https://yourapp.parseapp.com/alexaSkills app.post('/alexaSkills', alexaSkillsController.index); // Attach the Express app to Cloud Code. app.listen();