Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: JavaScript  |  size: 0.31 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var express = require('express');
  2.         app = express.createServer();
  3.     app.use(express.bodyParser());
  4.     app.post('/', function(req, res){
  5.       var i = req.param('1', null);
  6.       var j = req.param('2', null);
  7.       var k = req.param('3', null);
  8.       var r = i+j+k;
  9.       res.send(r);
  10.      
  11.     });
clone this paste RAW Paste Data