Last active
October 2, 2023 13:50
-
-
Save lando2319/9b738cdd55bc1093518e5a57a7213b05 to your computer and use it in GitHub Desktop.
using hyphens/dashes in firebase-functions V2 HTTPS routes without express
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 characters
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