Skip to content

Commit d21881a

Browse files
committed
WIP: example with expressjs
Signed-off-by: Fabio José <fabiojose@gmail.com>
1 parent 6b859f1 commit d21881a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

examples/express-ex/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ var express = require('express');
22
var app = express();
33

44
app.get('/', function (req, res) {
5-
res.send('Hello World!');
5+
console.log(req.headers);
6+
console.log(req.body);
7+
8+
// TODO use the Unmarshaller
9+
10+
res.send('Hello World!');
611
});
712

813
app.listen(3000, function () {
9-
console.log('Example app listening on port 3000!');
14+
console.log('Example app listening on port 3000!');
1015
});
11-

0 commit comments

Comments
 (0)