Skip to content

Instantly share code, notes, and snippets.

@marcorei
Last active December 31, 2017 14:51
Show Gist options
  • Save marcorei/cd9c9b2e5682718c897df31354cd6f9f to your computer and use it in GitHub Desktop.
Save marcorei/cd9c9b2e5682718c897df31354cd6f9f to your computer and use it in GitHub Desktop.
import * as express from 'express'
import * as bodyParser from 'body-parser'
const serverless = require('serverless-http')
import { createDialogflowApp } from './src/app'
export const expressApp = express()
expressApp.use(bodyParser.json());
expressApp.post('/fulfillment', createDialogflowApp)
module.exports.fulfillment = serverless(expressApp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment