From 320266606ec844abb7c4e7eefcb5ce5c3fa77abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Tue, 8 Jan 2019 20:27:28 +0100 Subject: [PATCH] Implement put collections --- src/api/core/ciphers.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 8adf4688..56fa54e0 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -56,6 +56,7 @@ pub fn routes() -> Vec { delete_all, move_cipher_selected, move_cipher_selected_put, + put_collections_update, post_collections_update, post_collections_admin, put_collections_admin, @@ -417,6 +418,16 @@ struct CollectionsAdminData { CollectionIds: Vec, } +#[put("/ciphers//collections", data = "")] +fn put_collections_update( + uuid: String, + data: JsonUpcase, + headers: Headers, + conn: DbConn, +) -> EmptyResult { + post_collections_admin(uuid, data, headers, conn) +} + #[post("/ciphers//collections", data = "")] fn post_collections_update( uuid: String,