aboutsummaryrefslogtreecommitdiffstats
path: root/crates/configuration/src/server/http_svc/routes.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-08-14 18:33:10 +0200
committerrtkay123 <dev@kanjala.com>2025-08-14 18:33:10 +0200
commit19871c1924a8569df741d4bf5f63943b6b646c16 (patch)
tree8ec72ec271ef8d815c64929dbf6e2ba0b4f3b6a6 /crates/configuration/src/server/http_svc/routes.rs
parent5eed2d7a4a919b3583017aa9a65089673bce87db (diff)
downloadwarden-19871c1924a8569df741d4bf5f63943b6b646c16.tar.bz2
warden-19871c1924a8569df741d4bf5f63943b6b646c16.zip
feat(config): rule http
Diffstat (limited to 'crates/configuration/src/server/http_svc/routes.rs')
-rw-r--r--crates/configuration/src/server/http_svc/routes.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/crates/configuration/src/server/http_svc/routes.rs b/crates/configuration/src/server/http_svc/routes.rs
index bec7c77..281b231 100644
--- a/crates/configuration/src/server/http_svc/routes.rs
+++ b/crates/configuration/src/server/http_svc/routes.rs
@@ -1,4 +1,5 @@
mod routing;
+mod rule;
use utoipa_axum::{router::OpenApiRouter, routes};
@@ -7,8 +8,16 @@ use crate::state::AppHandle;
pub fn router(store: AppHandle) -> OpenApiRouter {
OpenApiRouter::new()
.routes(routes!(
+ /* routing */
routing::get_active::active_routing,
- routing::post_routing::post_routing
+ routing::post_routing::post_routing,
+ routing::delete_routing::delete,
+ routing::replace_routing::replace,
+ /* rule */
+ rule::create::create_rule,
+ rule::update::update_rule_config,
+ rule::delete::delete_rule_config,
+ rule::get::get_rule,
))
.with_state(store)
}