diff options
author | rtkay123 <dev@kanjala.com> | 2025-08-14 18:05:07 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-08-14 18:05:07 +0200 |
commit | 1b8c6886f6d22f9c61e978b42d066dce91e334dc (patch) | |
tree | 468fae725d2464baac9b27d6a02f67f24e3eeb9f /crates/configuration/src/server.rs | |
parent | 600c7a1942c06c0f7a0ae87448595057206bf324 (diff) | |
download | warden-1b8c6886f6d22f9c61e978b42d066dce91e334dc.tar.bz2 warden-1b8c6886f6d22f9c61e978b42d066dce91e334dc.zip |
feat(config): rule grpc
Diffstat (limited to 'crates/configuration/src/server.rs')
-rw-r--r-- | crates/configuration/src/server.rs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/crates/configuration/src/server.rs b/crates/configuration/src/server.rs index dec0813..28d6dd8 100644 --- a/crates/configuration/src/server.rs +++ b/crates/configuration/src/server.rs @@ -10,8 +10,14 @@ use tonic::service::Routes; use tower_http::trace::TraceLayer; use warden_core::{ FILE_DESCRIPTOR_SET, - configuration::routing::{ - mutate_routing_server::MutateRoutingServer, query_routing_server::QueryRoutingServer, + configuration::{ + routing::{ + mutate_routing_server::MutateRoutingServer, query_routing_server::QueryRoutingServer, + }, + rule::{ + mutate_rule_configuration_server::MutateRuleConfigurationServer, + query_rule_configuration_server::QueryRuleConfigurationServer, + }, }, }; @@ -31,6 +37,14 @@ pub fn serve(state: AppHandle) -> Result<(axum::Router, axum::Router), AppError> state.clone(), MyInterceptor, )) + .add_service(MutateRuleConfigurationServer::with_interceptor( + state.clone(), + MyInterceptor, + )) + .add_service(QueryRuleConfigurationServer::with_interceptor( + state.clone(), + MyInterceptor, + )) .add_service(routing_reflector) .into_axum_router() .layer( |