Last active
December 31, 2017 14:51
-
-
Save marcorei/cd9c9b2e5682718c897df31354cd6f9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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