yada

dominicm 2019-01-12T06:31:29.031300Z

@kwladyka a resource can be put into production mode. You won't miss them all because you can postwalk your route structure to find them.

kwladyka 2019-01-12T09:58:25.032400Z

@dominicm > resource can be put into production mode Can you specify what is production mode and how to turn it on? I don’t see it in doc. > you can postwalk your route structure to find them. What exactly do you mean?

dominicm 2019-01-12T10:14:34.034200Z

@kwladyka I think there's a key you can put into the resource, I don't know what it is exactly. You can call clojure.walk/postwalk on your routes

kwladyka 2019-01-12T10:16:36.035700Z

It wouldn’t work. One day somebody will add new resource and forget about it. Besides of that something can change in yada. I have to make all http 404, 500, … web sites by my own and don’t miss any.

kwladyka 2019-01-12T10:16:50.036100Z

But this key about production can be interesting, but there is no word about it.

kwladyka 2019-01-12T10:17:10.036400Z

Why do you think there is such key?

dominicm 2019-01-12T10:36:32.036900Z

I was there when it was added 😊

dominicm 2019-01-12T10:36:43.037300Z

The postwalk ensures that none get missed.

kwladyka 2019-01-12T10:46:45.038200Z

I see in code of yada only this https://github.com/juxt/yada/blob/ba10db43e1a332f0bfd352cd8ea39f176190c4ff/dev/config.edn about production, but it is not connected to our topic.

kwladyka 2019-01-12T10:48:19.039900Z

Anyway thanks for trying help. I hope somebody will answer here about plans for NOT throwing exceptions to users face by default 🙂

kwladyka 2019-01-12T13:36:04.040700Z

How to make POST JSON query? I am trying something like that, but I can’t figure out it. (yada/response-for authentication :post "/authentication" {:body "{\"email\": \"<mailto:foo@example.com|foo@example.com>\", \"password\": \"qwaszx\"}"})