mirror of
https://github.com/penpot/penpot.git
synced 2025-02-15 11:38:24 -05:00
🐛 Fix awsns endpoint
This commit is contained in:
parent
99dea51eea
commit
2e077e3ea9
1 changed files with 4 additions and 3 deletions
|
@ -16,6 +16,7 @@
|
||||||
[integrant.core :as ig]
|
[integrant.core :as ig]
|
||||||
[jsonista.core :as j]
|
[jsonista.core :as j]
|
||||||
[promesa.exec :as px]
|
[promesa.exec :as px]
|
||||||
|
[yetti.request :as yrq]
|
||||||
[yetti.response :as yrs]))
|
[yetti.response :as yrs]))
|
||||||
|
|
||||||
(declare parse-json)
|
(declare parse-json)
|
||||||
|
@ -31,9 +32,9 @@
|
||||||
(defmethod ig/init-key ::handler
|
(defmethod ig/init-key ::handler
|
||||||
[_ {:keys [executor] :as cfg}]
|
[_ {:keys [executor] :as cfg}]
|
||||||
(fn [request respond _]
|
(fn [request respond _]
|
||||||
(let [data (slurp (:body request))]
|
(let [data (-> request yrq/body slurp)]
|
||||||
(px/run! executor #(handle-request cfg data))
|
(px/run! executor #(handle-request cfg data)))
|
||||||
(respond (yrs/response 200)))))
|
(respond (yrs/response 200))))
|
||||||
|
|
||||||
(defn handle-request
|
(defn handle-request
|
||||||
[{:keys [http-client] :as cfg} data]
|
[{:keys [http-client] :as cfg} data]
|
||||||
|
|
Loading…
Add table
Reference in a new issue