mirror of
https://github.com/arnaucube/raspberryGPIOhtmlserver.git
synced 2026-02-07 19:56:40 +01:00
18 lines
284 B
JavaScript
Executable File
18 lines
284 B
JavaScript
Executable File
var express = require('./');
|
|
var app = express();
|
|
|
|
express.request.toJSON = function(){
|
|
return {
|
|
method: this.method,
|
|
url: this.url,
|
|
header: this.headers
|
|
}
|
|
};
|
|
|
|
app.get('*', function(req, res){
|
|
console.log(JSON.stringify(req));
|
|
res.send(200);
|
|
});
|
|
|
|
app.listen(4000)
|