Browse Source
			
			
			Merge pull request #54 from mprasil/delete-admin
			
				Implement delete-admin call
			
			
				pull/55/head
			
			
		 
		
			
				
					
						 Daniel García
					
					7 years ago
						Daniel García
					
					7 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 2 changed files with 
6 additions and 
0 deletions
			 
			
		 
		
			
				- 
					
					
					 
					src/api/core/ciphers.rs
				
- 
					
					
					 
					src/api/core/mod.rs
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -441,6 +441,11 @@ fn delete_cipher_post(uuid: String, headers: Headers, conn: DbConn) -> EmptyResu | 
			
		
	
		
			
				
					|  |  |  |     _delete_cipher_by_uuid(&uuid, &headers, &conn) | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | #[post("/ciphers/<uuid>/delete-admin")] | 
			
		
	
		
			
				
					|  |  |  | fn delete_cipher_post_admin(uuid: String, headers: Headers, conn: DbConn) -> EmptyResult { | 
			
		
	
		
			
				
					|  |  |  |     _delete_cipher_by_uuid(&uuid, &headers, &conn) | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | #[delete("/ciphers/<uuid>")] | 
			
		
	
		
			
				
					|  |  |  | fn delete_cipher(uuid: String, headers: Headers, conn: DbConn) -> EmptyResult { | 
			
		
	
		
			
				
					|  |  |  |     _delete_cipher_by_uuid(&uuid, &headers, &conn) | 
			
		
	
	
		
			
				
					|  |  | 
 | 
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -41,6 +41,7 @@ pub fn routes() -> Vec<Route> { | 
			
		
	
		
			
				
					|  |  |  |         post_cipher, | 
			
		
	
		
			
				
					|  |  |  |         put_cipher, | 
			
		
	
		
			
				
					|  |  |  |         delete_cipher_post, | 
			
		
	
		
			
				
					|  |  |  |         delete_cipher_post_admin, | 
			
		
	
		
			
				
					|  |  |  |         delete_cipher, | 
			
		
	
		
			
				
					|  |  |  |         delete_cipher_selected, | 
			
		
	
		
			
				
					|  |  |  |         delete_all, | 
			
		
	
	
		
			
				
					|  |  | 
 |