mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-28 00:40:01 +02:00 
			
		
		
		
	Update dependencies and add /ciphers/create
This commit is contained in:
		| @@ -32,6 +32,7 @@ pub fn routes() -> Vec<Route> { | ||||
|         post_ciphers, | ||||
|         put_cipher_admin, | ||||
|         post_ciphers_admin, | ||||
|         post_ciphers_create, | ||||
|         post_ciphers_import, | ||||
|         post_attachment, | ||||
|         post_attachment_admin, | ||||
| @@ -175,7 +176,11 @@ fn post_ciphers_admin(data: JsonUpcase<ShareCipherData>, headers: Headers, conn: | ||||
|     }; | ||||
|  | ||||
|     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>")] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user