geforkt von mirrored/vaultwarden
Implement put collections
Dieser Commit ist enthalten in:
Ursprung
a0a08c4c5a
Commit
320266606e
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
|
@ -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,
|
||||
|
|
Laden …
In neuem Issue referenzieren