Fork me on GitHub
#yada
<
2020-06-11
>
lucian30300:06:46

i have this route:

(yada/as-resource {:message "yo!"})
which produces Content-Type: application/edn but returns json. how can i return application/json?

lucian30300:06:06

i mean to change the default so it doesn't need to be specified per route

lucian30317:06:48

also, what would be the best way to register an exception handler to capture all yada errors? maybe register an interceptor at the end of the chain? i'm trying to figure out how to do that ...