mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 23:46:12 +02:00
🐛 Fix login and logout remo handlers.
This commit is contained in:
parent
170d815620
commit
dcd797888c
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue