benmerckx / monsoon

Minimal haxe web framework and embedded webserver
53 stars 8 forks source link

GET and POST #9

Closed software0012 closed 6 years ago

software0012 commented 6 years ago

Hello,

I've been trying to do a POST with a GET at the same time but it seems it's not able to handle it.

app.route('/blog/:id/new', function (req, res) { trace(req.params); });

If I make a POST request to my url : http://website.com/blog/2/new ; it will only trace params.id = 2, not what I submitted through my form on that page. Is there anyway I can do both?