Skip to content

Instantly share code, notes, and snippets.

@hzburki
Last active April 16, 2019 08:36
Show Gist options
  • Save hzburki/7deb718fc23678e824d9626c6497b214 to your computer and use it in GitHub Desktop.
Save hzburki/7deb718fc23678e824d9626c6497b214 to your computer and use it in GitHub Desktop.
app.js for Serverless Node Project - Serverless Blog
const express = require('express')
const bodyParser = require('body-parser')
const serverless = require('serverless-http')
const app = express()
/* Body Parser */
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
/*
* ==================
* API Routes Go Here
* ==================
*/
module.exports.index = serverless(app)
@hzburki
Copy link
Author

hzburki commented Apr 16, 2019

Removed callbackWaitsForEmptyEventLoop from serverless http

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment