📡 HTTP Functions Basics

Write your First HTTP Endpoint

file_type_typescript http.ts
export const basicHTTP = functions.https.onRequest((request, response) => {
  const name = request.query.name;

  if (!name) {
    response.status(400).send('ERROR you must supply a name :(');
  }

  response.send(`hello ${name}`);
});

Questions? Let's chat

Open Discord