commit 6ede1743ac837b67586ebc7190e91a523d000826
parent d3f357b7089fc649ff95eb067cd061e2fc3a608b
Author: Miroslav Prasil <miroslav@prasil.info>
Date: Mon, 13 Aug 2018 16:00:10 +0100
add alias for PUT collections-admin
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs
@@ -291,6 +291,11 @@ fn post_collections_update(uuid: String, data: JsonUpcase<CollectionsAdminData>,
post_collections_admin(uuid, data, headers, conn)
}
+#[put("/ciphers/<uuid>/collections-admin", data = "<data>")]
+fn put_collections_admin(uuid: String, data: JsonUpcase<CollectionsAdminData>, headers: Headers, conn: DbConn) -> EmptyResult {
+ post_collections_admin(uuid, data, headers, conn)
+}
+
#[post("/ciphers/<uuid>/collections-admin", data = "<data>")]
fn post_collections_admin(uuid: String, data: JsonUpcase<CollectionsAdminData>, headers: Headers, conn: DbConn) -> EmptyResult {
let data: CollectionsAdminData = data.into_inner().data;
diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs
@@ -90,6 +90,7 @@ pub fn routes() -> Vec<Route> {
post_organization_collection_delete,
post_collections_update,
post_collections_admin,
+ put_collections_admin,
get_org_details,
get_org_users,
send_invite,