0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-01 20:09:04 -05:00

🐛 Fix login and logout remo handlers.

This commit is contained in:
Andrey Antukh 2020-01-24 11:15:40 +01:00
parent 170d815620
commit dcd797888c

View file

@ -122,14 +122,14 @@
(defmethod mutation :login
[id params]
(let [url (str url "/login")]
(let [url (str url "/api/login")]
(->> (impl-send {:method :post :url url :body params})
(rx/map conditional-decode)
(rx/mapcat handle-response))))
(defmethod mutation :logout
[id params]
(let [url (str url "/logout")]
(let [url (str url "/api/logout")]
(->> (impl-send {:method :post :url url :body params :auth false})
(rx/map conditional-decode)
(rx/mapcat handle-response))))