vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 320266606ec844abb7c4e7eefcb5ce5c3fa77abb
parent a0a08c4c5af06df321db90009f0d02643da51a32
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue,  8 Jan 2019 20:27:28 +0100

Implement put collections

Diffstat:
Msrc/api/core/ciphers.rs | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -56,6 +56,7 @@ pub fn routes() -> Vec<Route> { 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<String>, } +#[put("/ciphers/<uuid>/collections", data = "<data>")] +fn put_collections_update( + uuid: String, + data: JsonUpcase<CollectionsAdminData>, + headers: Headers, + conn: DbConn, +) -> EmptyResult { + post_collections_admin(uuid, data, headers, conn) +} + #[post("/ciphers/<uuid>/collections", data = "<data>")] fn post_collections_update( uuid: String,