Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lando2319/9b738cdd55bc1093518e5a57a7213b05 to your computer and use it in GitHub Desktop.
Save lando2319/9b738cdd55bc1093518e5a57a7213b05 to your computer and use it in GitHub Desktop.
using hyphens/dashes in firebase-functions V2 HTTPS routes without express
const { onRequest } = require('firebase-functions/v2/https');
function say() {
return { hello : sayHello }
}
var sayHello = onRequest(
(req, res) => {
res.status(200).send("Hello, is it me you're looking for");
}
);
exports["say"] = say();
// This will produce the endpoint say-hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment