@@ -138,7 +138,7 @@ putUser uid upd = do
138
138
" brig"
139
139
b
140
140
( method PUT
141
- . versionedPath " / self"
141
+ . versionedPath " self"
142
142
. header " Z-User" (toByteString' uid)
143
143
. header " Z-Connection" (toByteString' " " )
144
144
. lbytes (encode upd)
@@ -374,6 +374,7 @@ changeEmail u upd = do
374
374
. Bilge. path " i/self/email"
375
375
. header " Z-User" (toByteString' u)
376
376
. header " Z-Connection" (toByteString' " " )
377
+ . queryItem " validate" " true"
377
378
. lbytes (encode upd)
378
379
. contentJson
379
380
. expect2xx
@@ -388,7 +389,7 @@ changePhone u upd = do
388
389
" brig"
389
390
b
390
391
( method PUT
391
- . versionedPath " / self/phone"
392
+ . versionedPath " self/phone"
392
393
. header " Z-User" (toByteString' u)
393
394
. header " Z-Connection" (toByteString' " " )
394
395
. lbytes (encode upd)
@@ -680,7 +681,7 @@ getUserConsentValue uid = do
680
681
g
681
682
( method GET
682
683
. header " Z-User" (toByteString' uid)
683
- . versionedPath " / self/consent"
684
+ . versionedPath " self/consent"
684
685
. expect2xx
685
686
)
686
687
parseResponse (mkError status502 " bad-upstream" ) r
@@ -732,7 +733,7 @@ getUserCookies uid = do
732
733
g
733
734
( method GET
734
735
. header " Z-User" (toByteString' uid)
735
- . versionedPath " / cookies"
736
+ . versionedPath " cookies"
736
737
. expect2xx
737
738
)
738
739
parseResponse (mkError status502 " bad-upstream" ) r
@@ -777,7 +778,7 @@ getUserClients uid = do
777
778
b
778
779
( method GET
779
780
. header " Z-User" (toByteString' uid)
780
- . versionedPath " / clients"
781
+ . versionedPath " clients"
781
782
. expect2xx
782
783
)
783
784
info $ msg (" Response" ++ show r)
@@ -794,7 +795,7 @@ getUserProperties uid = do
794
795
b
795
796
( method GET
796
797
. header " Z-User" (toByteString' uid)
797
- . versionedPath " / properties"
798
+ . versionedPath " properties"
798
799
. expect2xx
799
800
)
800
801
info $ msg (" Response" ++ show r)
@@ -838,7 +839,7 @@ getUserNotifications uid = do
838
839
b
839
840
( method GET
840
841
. header " Z-User" (toByteString' uid)
841
- . versionedPath " / notifications"
842
+ . versionedPath " notifications"
842
843
. queryItem " size" (toByteString' batchSize)
843
844
. maybe id (queryItem " since" . toByteString') start
844
845
. expectStatus (`elem` [200 , 404 ])
0 commit comments