Fork me on GitHub
#yada
<
2019-01-12
>
dominicm06:01:29

@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.

kwladyka09:01:25

@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?

dominicm10:01:34

@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

kwladyka10:01:36

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.

kwladyka10:01:50

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

kwladyka10:01:10

Why do you think there is such key?

dominicm10:01:32

I was there when it was added 😊

dominicm10:01:43

The postwalk ensures that none get missed.

kwladyka10:01:45

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.

kwladyka10:01:19

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

kwladyka13:01:04

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\": \"\", \"password\": \"qwaszx\"}"})