Stick params middleware not working

13 views
Skip to first unread message

prateek sharma

unread,
May 15, 2013, 2:35:55 AM5/15/13
to rin...@googlegroups.com
Hi all,
I am building a very simple web page using stick.

I have main.js file where my server is setup. In main.js I am configuring Stick as mentioned below.

var {Application} = require('stick');

var app = exports.app = new Application();

app.configure("gzip", "route", "static", "notfound", "params");

Here I have configured params middleware of Stick to process post request parameters.

I have created a simple html page which has two text box and one submit button.

main.js post method is as below.

app.post('/:path', function(request, path) {
console.dir(request);
});

Now the problem is that I am not able to see postParams in my console.
Am I missing something here?

Thanks,
Prateek
Reply all
Reply to author
Forward
0 new messages