Skip to content

Instantly share code, notes, and snippets.

@ety001
Created December 15, 2014 14:49
Show Gist options
  • Save ety001/81cb0d201c828984fd39 to your computer and use it in GitHub Desktop.
Save ety001/81cb0d201c828984fd39 to your computer and use it in GitHub Desktop.
var app = require('express')();
var bodyParser = require('body-parser');
var multer = require('multer');
//app.use(bodyParser.json());
//app.use(bodyParser.urlencoded({
// extended: true
//}));
//app.use(multer);
app.get('/', function(req, res) {
res.send("Hello world!\n");
});
app.post('/module', function(req, res) {
//res.send(req);
console.log(req.body);
});
app.listen(3000);
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment