commit fcb479a45734cf7ea06b6e81f0e18c0b9568f777
parent 07a30c83344bb1520d6b8c95e3fae4a182cc81f6
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Wed, 1 Aug 2018 11:49:14 +0200
Merge pull request #108 from krankur/beta
Implementing PUT for 'api/ciphers/move' (#99)
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs
@@ -535,6 +535,11 @@ fn move_cipher_selected(data: JsonUpcase<Value>, headers: Headers, conn: DbConn)
Ok(())
}
+#[put("/ciphers/move", data = "<data>")]
+fn move_cipher_selected_put(data: JsonUpcase<Value>, headers: Headers, conn: DbConn) -> EmptyResult {
+ move_cipher_selected(data, headers, conn)
+}
+
#[post("/ciphers/purge", data = "<data>")]
fn delete_all(data: JsonUpcase<PasswordData>, headers: Headers, conn: DbConn) -> EmptyResult {
let data: PasswordData = data.into_inner().data;
diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs
@@ -46,6 +46,7 @@ pub fn routes() -> Vec<Route> {
delete_cipher_selected,
delete_all,
move_cipher_selected,
+ move_cipher_selected_put,
get_folders,
get_folder,