Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 8, 2021 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/776965bd23d4a17b390da46cd0ae931e to your computer and use it in GitHub Desktop.
Save velotiotech/776965bd23d4a17b390da46cd0ae931e to your computer and use it in GitHub Desktop.
const serverless = require("serverless-http");
const express = require("express");
const app = express();
.
.
.
.
.
.
app.get("/",(req,res)=> {
res.sendFile(path.join(__dirname + "/index.html"));
});
module.exports.uihome = serverless(app);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment