WIP: example with expressjs
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
		
							parent
							
								
									6b859f13b4
								
							
						
					
					
						commit
						d21881a2b5
					
				|  | @ -2,10 +2,14 @@ var express = require('express'); | ||||||
| var app = express(); | var app = express(); | ||||||
| 
 | 
 | ||||||
| app.get('/', function (req, res) { | app.get('/', function (req, res) { | ||||||
|  |   console.log(req.headers); | ||||||
|  |   console.log(req.body); | ||||||
|  | 
 | ||||||
|  |   // TODO use the Unmarshaller
 | ||||||
|  |    | ||||||
|   res.send('Hello World!'); |   res.send('Hello World!'); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| app.listen(3000, function () { | app.listen(3000, function () { | ||||||
|   console.log('Example app listening on port 3000!'); |   console.log('Example app listening on port 3000!'); | ||||||
| }); | }); | ||||||
| 
 |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue