ring

zendevil.eth 2022-03-03T18:50:14.930079Z

is there a ring middleware that converts a req like so:

(-> session
      (request "/api/reset-password"
               :content-type "application/json"
               :request-method :post
               :body (cc/generate-string
                      {:email email
                       :newPassword newPassword
                       :resetToken token}
                      )))
to have body-params in the server?

sova-soars-the-sora 2022-03-04T22:19:46.388789Z

are you building a ring server from scratch? would highly recommend taking a working one and then modifying it to fit your needs.

jumar 2022-03-03T04:07:01.839589Z

There was another discussion about this. OP should have mentioned that https://clojurians.slack.com/archives/C8860D6BS/p1646233044822329