Fix the examples and use the same names
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
e1b04bdcdb
commit
852cad0832
|
@ -23,10 +23,10 @@ app.post('/', function (req, res) {
|
|||
console.log(req.body);
|
||||
|
||||
unmarshaller.unmarshall(req.body, req.headers)
|
||||
.then(event => {
|
||||
.then(cloudevent => {
|
||||
// pretty print
|
||||
console.log("Accepted event:");
|
||||
console.log(JSON.stringify(event.format(), null, 2));
|
||||
console.log(JSON.stringify(cloudevent.format(), null, 2));
|
||||
|
||||
res.status(201)
|
||||
.send("Event Accepted");
|
||||
|
|
Loading…
Reference in New Issue