mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 07:30:24 +00:00
🐛 Fix login and logout remo handlers.
This commit is contained in:
parent
170d815620
commit
dcd797888c
@ -122,14 +122,14 @@
|
|||||||
|
|
||||||
(defmethod mutation :login
|
(defmethod mutation :login
|
||||||
[id params]
|
[id params]
|
||||||
(let [url (str url "/login")]
|
(let [url (str url "/api/login")]
|
||||||
(->> (impl-send {:method :post :url url :body params})
|
(->> (impl-send {:method :post :url url :body params})
|
||||||
(rx/map conditional-decode)
|
(rx/map conditional-decode)
|
||||||
(rx/mapcat handle-response))))
|
(rx/mapcat handle-response))))
|
||||||
|
|
||||||
(defmethod mutation :logout
|
(defmethod mutation :logout
|
||||||
[id params]
|
[id params]
|
||||||
(let [url (str url "/logout")]
|
(let [url (str url "/api/logout")]
|
||||||
(->> (impl-send {:method :post :url url :body params :auth false})
|
(->> (impl-send {:method :post :url url :body params :auth false})
|
||||||
(rx/map conditional-decode)
|
(rx/map conditional-decode)
|
||||||
(rx/mapcat handle-response))))
|
(rx/mapcat handle-response))))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user