Skip to content

Commit f54e125

Browse files
nicolasgarnierdpebot
authored andcommitted
Update the uuid sample for cross-product consistency (#305)
See cl/145830521 for explanations.
1 parent 27d9b85 commit f54e125

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

functions/uuid/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
// [START functions_uuid]
1919
const uuid = require('uuid');
2020

21-
exports.uuid = function (event, callback) {
22-
callback(null, uuid.v4());
21+
// Return a newly generated UUID in the HTTP response.
22+
exports.getUuid = function (req, res) {
23+
res.send(uuid.v4());
2324
};
2425
// [END functions_uuid]

0 commit comments

Comments
 (0)