mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 09:06:12 +02:00
♻️ Refactor backend.
Move from custom vertx to jetty9.
This commit is contained in:
parent
1639e15975
commit
5a03c13731
82 changed files with 1763 additions and 4667 deletions
|
@ -35,13 +35,15 @@
|
|||
[{:keys [body headers auth method query url response-type]
|
||||
:or {auth true response-type :text}}]
|
||||
(let [headers (merge {"Accept" "application/transit+json,*/*"}
|
||||
default-headers
|
||||
(when (map? body) default-headers)
|
||||
headers)
|
||||
request {:method method
|
||||
:url url
|
||||
:headers headers
|
||||
:query query
|
||||
:body (when (not= :get method) (t/encode body))}
|
||||
:body (if (map? body)
|
||||
(t/encode body)
|
||||
body)}
|
||||
options {:response-type response-type
|
||||
:credentials? auth}]
|
||||
(http/send! request options)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue