Fork me on GitHub
#reitit
<
2023-06-05
>
Santiago06:06:24

I need to access the raw (json) body of a request, then hash and validate it. I've only found a year-and-a-half-old mini-thread here https://clojurians-log.clojureverse.org/reitit/2022-01-10 about the topic, and was wondering if there had been any changes in this regard. The docs don't mention anything related to this use-case, which I also assume is a bit niche.

valtteri15:06:07

We should maybe add an example for that use-case :)

Santiago06:06:15

right above my own previous message 😅 sorry I didn't notice and thanks for pointing it out. yeah that would be great! a lot of services are starting to implement verification procedures which involve checking the hash of the original payload (e.g. Slack)