Last active
April 16, 2019 08:36
-
-
Save hzburki/7deb718fc23678e824d9626c6497b214 to your computer and use it in GitHub Desktop.
app.js for Serverless Node Project - Serverless Blog
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
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removed callbackWaitsForEmptyEventLoop from serverless http