Skip to content

Instantly share code, notes, and snippets.

@InputNeuron
Last active February 26, 2020 21:16
Show Gist options
  • Select an option

  • Save InputNeuron/d1b5dedd2bf6d111ebf39fa098897a6a to your computer and use it in GitHub Desktop.

Select an option

Save InputNeuron/d1b5dedd2bf6d111ebf39fa098897a6a to your computer and use it in GitHub Desktop.
import * as functions from "firebase-functions";
import express from 'express';
const app = express();
app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
console.log("Hello World: : handling basic request");
res.status(200).send('Hello World\n');
next();
});
export const HelloWorldFunction = functions.https.onRequest(app);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment