geforkt von mirrored/vaultwarden
Ursprung
1d4944b88e
Commit
00abd4c853
2 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
|
@ -143,7 +143,11 @@ fn post_ciphers_admin(data: JsonUpcase<ShareCipherData>, headers: Headers, conn:
|
||||||
};
|
};
|
||||||
|
|
||||||
share_cipher_by_uuid(&cipher.uuid, data, &headers, &conn, &ws)
|
share_cipher_by_uuid(&cipher.uuid, data, &headers, &conn, &ws)
|
||||||
|
}
|
||||||
|
|
||||||
|
#[post("/ciphers/create", data = "<data>")]
|
||||||
|
fn post_ciphers_create(data: JsonUpcase<ShareCipherData>, headers: Headers, conn: DbConn, ws: State<WebSocketUsers>) -> JsonResult {
|
||||||
|
post_ciphers_admin(data, headers, conn, ws)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[post("/ciphers", data = "<data>")]
|
#[post("/ciphers", data = "<data>")]
|
||||||
|
|
|
@ -39,6 +39,7 @@ pub fn routes() -> Vec<Route> {
|
||||||
post_ciphers,
|
post_ciphers,
|
||||||
put_cipher_admin,
|
put_cipher_admin,
|
||||||
post_ciphers_admin,
|
post_ciphers_admin,
|
||||||
|
post_ciphers_create,
|
||||||
post_ciphers_import,
|
post_ciphers_import,
|
||||||
post_attachment,
|
post_attachment,
|
||||||
post_attachment_admin,
|
post_attachment_admin,
|
||||||
|
|
Laden …
In neuem Issue referenzieren