This is similar to a previous question of mine
I'm testing Cloud Functions in a Firebase Node.js project using Express apps, and don't know how to add query parameters to my test.
Sample code:
const logUUID = (req, res) => {
console.log("This function is executing!")
res.send(req.params.uuid)
}
test_app.use("/log_uuid", logUUID)
exports.test = functions.https.onRequest(test_app)
I am calling it through this:
test.get("/logParams")
Which does indeed log
This function is executing!
I don't know how to pass in a 'uuid' query parameter, even after reading the firebase docs and the request readme linked in the firebase docs. I've tried everything I could come up with:
test.get("/logParams?uuid=1234")
test.get("/logParams",{uuid:1234})
...
How can I do this?