 Daniel García
					
					7 years ago
						Daniel García
					
					7 years ago
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: FC8A7D14C3CD543A
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
11 additions and 
0 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/api/core/ciphers.rs
				
				
				
					
						
							
								
									
	
		
		
			
				
					|  | @ -56,6 +56,7 @@ pub fn routes() -> Vec<Route> { | 
			
		
	
		
		
			
				
					|  |  |         delete_all, |  |  |         delete_all, | 
			
		
	
		
		
			
				
					|  |  |         move_cipher_selected, |  |  |         move_cipher_selected, | 
			
		
	
		
		
			
				
					|  |  |         move_cipher_selected_put, |  |  |         move_cipher_selected_put, | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         put_collections_update, | 
			
		
	
		
		
			
				
					|  |  |         post_collections_update, |  |  |         post_collections_update, | 
			
		
	
		
		
			
				
					|  |  |         post_collections_admin, |  |  |         post_collections_admin, | 
			
		
	
		
		
			
				
					|  |  |         put_collections_admin, |  |  |         put_collections_admin, | 
			
		
	
	
		
		
			
				
					|  | @ -417,6 +418,16 @@ struct CollectionsAdminData { | 
			
		
	
		
		
			
				
					|  |  |     CollectionIds: Vec<String>, |  |  |     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>")] |  |  | #[post("/ciphers/<uuid>/collections", data = "<data>")] | 
			
		
	
		
		
			
				
					|  |  | fn post_collections_update( |  |  | fn post_collections_update( | 
			
		
	
		
		
			
				
					|  |  |     uuid: String, |  |  |     uuid: String, | 
			
		
	
	
		
		
			
				
					|  | 
 |