Fork me on GitHub
#untangled
<
2017-05-11
>
codxse15:05:19

I think I am lost, I am missing form parameters in POST request

codxse16:05:55

my question, how do I get the data that sent with POST method? you know, with GET method we can see it on query string. in POST I cant find the body data both in req and params. sorry for my noob question.

ethangracer18:05:29

Saw this post and thought I'd share, awhile back we had several discussions in here about d3 and react charts: http://post.oreilly.com/rd/9z1zeer38t43t4vcr9t1juujc9bm04clj87jr1tbh8g

pedroteixeira18:05:41

in the untangled-template, I see the :extra-routes {:routes [["/hello/" [#"\d+" :id]] :sample1] in system.clj, but trying to GET /hello/ or /sample1/hello/ returns 404.. any hint? not familiar with all the stack still 🙂

adambros20:05:32

@pedroteixeira you need to add an ID to your url, that's what the [#"\d+" :id] is about, eg: /hello/42 For reference, the extra routes is just a pass through to bidi https://github.com/juxt/bidi

pedroteixeira20:05:54

ah.. of course, thanks. didn't read the pattern matching expr. 😕