commit 91a23193251366b630b6c25cb2c5d7429604ee7e
parent 07a30c83344bb1520d6b8c95e3fae4a182cc81f6
Author: Kumar Ankur <kankur@mobileiron.com>
Date: Wed, 1 Aug 2018 03:58:47 +0530
Implementing PUT for ciphers/move (#99)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs
@@ -483,8 +483,9 @@ fn delete_cipher_selected(data: JsonUpcase<Value>, headers: Headers, conn: DbCon
Ok(())
}
-#[post("/ciphers/move", data = "<data>")]
+#[put("/ciphers/move", data = "<data>")]
fn move_cipher_selected(data: JsonUpcase<Value>, headers: Headers, conn: DbConn) -> EmptyResult {
+ println!("{}", "inside put");
let data = data.into_inner().data;
let folder_id = match data.get("FolderId") {