15921: Updates tests to not expect trailing slashes on API calls.
[arvados.git] / src / services / user-service / user-service.ts
index bcf81d554967a298b3e7f89d2716e15689780a3d..d8c7fe3d94f24d6a9f276947dc58a56ef11c9c81 100644 (file)
@@ -12,10 +12,18 @@ export class UserService extends CommonResourceService<UserResource> {
         super(serverApi, "users", actions);
     }
 
+    activate(uuid: string) {
+        return CommonResourceService.defaultResponse(
+            this.serverApi
+                .post(this.resourceType + `/${uuid}/activate`),
+            this.actions
+        );
+    }
+
     unsetup(uuid: string) {
         return CommonResourceService.defaultResponse(
             this.serverApi
-                .post(this.resourceType + uuid + '/unsetup'),
+                .post(this.resourceType + `/${uuid}/unsetup`),
             this.actions
         );
     }