Created
May 29, 2018 01:05
Revisions
-
saigowthamr created this gist
May 29, 2018 .There are no files selected for viewing
This file contains 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ const serverless = require("serverless-http"); const hbs = require("hbs"); const express = require("express"); const bodyParser = require("body-parser"); const app = express(); app.use(bodyParser.urlencoded({ extended: false })); // parse application/json app.use(bodyParser.json()); app.set("view engine", "hbs"); app.get("/", function(req, res) { res.status(200).render("index"); }); module.exports.gallery = serverless(app);