paste: change return signature of fetching paste
Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
		
							parent
							
								
									51591530d0
								
							
						
					
					
						commit
						4a456aafd6
					
				@ -61,7 +61,7 @@ fn fetch(id: String, conn: DbConn) -> Custom<Json<Value>> {
 | 
			
		||||
        }
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    Custom(Status::Found, Json(json!(paste)))
 | 
			
		||||
    Custom(Status::Ok, Json(json!(paste)))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pub fn fuel(rocket: Rocket) -> Rocket {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user