@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.
@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?
@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
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.
But this key about production can be interesting, but there is no word about it.
Why do you think there is such key?
I was there when it was added 😊
The postwalk ensures that none get missed.
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.
Anyway thanks for trying help. I hope somebody will answer here about plans for NOT throwing exceptions to users face by default 🙂
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\"}"})