0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

🐛 Fix issue on awsns http handler

This commit is contained in:
Andrey Antukh 2023-06-23 12:59:03 +02:00
parent 81658c90d1
commit b138550c0d

View file

@ -36,10 +36,10 @@
(defmethod ig/init-key ::routes
[_ {:keys [::wrk/executor] :as cfg}]
(letfn [(handler [request respond _]
(letfn [(handler [request]
(let [data (-> request yrq/body slurp)]
(px/run! executor #(handle-request cfg data)))
(respond {::yrs/status 200}))]
{::yrs/status 200})]
["/sns" {:handler handler
:allowed-methods #{:post}}]))