🐛 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 (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))))