We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d9b85 commit f54e125Copy full SHA for f54e125
1 file changed
functions/uuid/index.js
@@ -18,7 +18,8 @@
18
// [START functions_uuid]
19
const uuid = require('uuid');
20
21
-exports.uuid = function (event, callback) {
22
- callback(null, uuid.v4());
+// Return a newly generated UUID in the HTTP response.
+exports.getUuid = function (req, res) {
23
+ res.send(uuid.v4());
24
};
25
// [END functions_uuid]
0 commit comments