diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 6a2ecd5..a739594 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -143,7 +143,11 @@ fn post_ciphers_admin(data: JsonUpcase, headers: Headers, conn: }; share_cipher_by_uuid(&cipher.uuid, data, &headers, &conn, &ws) +} +#[post("/ciphers/create", data = "")] +fn post_ciphers_create(data: JsonUpcase, headers: Headers, conn: DbConn, ws: State) -> JsonResult { + post_ciphers_admin(data, headers, conn, ws) } #[post("/ciphers", data = "")] diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs index 4c748fd..60f43da 100644 --- a/src/api/core/mod.rs +++ b/src/api/core/mod.rs @@ -39,6 +39,7 @@ pub fn routes() -> Vec { post_ciphers, put_cipher_admin, post_ciphers_admin, + post_ciphers_create, post_ciphers_import, post_attachment, post_attachment_admin,