@@ -10,7 +10,7 @@ use axum::Router;
1010use nym_bin_common:: bin_info_owned;
1111use nym_http_api_common:: middleware:: logging;
1212use nym_node_requests:: api:: v1:: authenticator:: models:: Authenticator ;
13- use nym_node_requests:: api:: v1:: gateway:: models:: Gateway ;
13+ use nym_node_requests:: api:: v1:: gateway:: models:: { Bridges , Gateway } ;
1414use nym_node_requests:: api:: v1:: ip_packet_router:: models:: IpPacketRouter ;
1515use nym_node_requests:: api:: v1:: mixnode:: models:: Mixnode ;
1616use nym_node_requests:: api:: v1:: network_requester:: exit_policy:: models:: UsedExitPolicy ;
@@ -48,6 +48,7 @@ impl HttpServerConfig {
4848 metrics : Default :: default ( ) ,
4949 gateway : Default :: default ( ) ,
5050 mixnode : Default :: default ( ) ,
51+ bridges : Default :: default ( ) ,
5152 network_requester : Default :: default ( ) ,
5253 ip_packet_router : Default :: default ( ) ,
5354 authenticator : Default :: default ( ) ,
@@ -121,6 +122,13 @@ impl HttpServerConfig {
121122 self . api . v1_config . metrics . bearer_token = bearer_token. map ( |b| Arc :: new ( Zeroizing :: new ( b) ) ) ;
122123 self
123124 }
125+
126+ pub fn with_bridge_client_params_file ( mut self , path : & Path ) -> Self {
127+ self . api . v1_config . bridges . details = Some ( Bridges {
128+ client_params_path : path. to_string_lossy ( ) . to_string ( ) ,
129+ } ) ;
130+ self
131+ }
124132}
125133
126134pub struct NymNodeRouter {
0 commit comments