aboutsummaryrefslogtreecommitdiffstats
path: root/crates/configuration/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/configuration/src/server.rs')
-rw-r--r--crates/configuration/src/server.rs18
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(