Skip to content

Commit e37bcf5

Browse files
committed
feat(certificates)!: use proper REST URLs for the certificate utility APIs
1 parent 8333045 commit e37bcf5

26 files changed

+3412
-1779
lines changed

src/server.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,15 @@ pub async fn run(
171171
)
172172
.service(
173173
web::scope("/utils")
174-
.route("/action", web::post().to(handlers::utils_handle_action)),
174+
.route("/action", web::post().to(handlers::utils_handle_action))
175+
.service(
176+
web::resource([
177+
"/{area}/{resource}",
178+
"/{area}/{resource}/{resource_id}",
179+
"/{area}/{resource}/{resource_id}/{resource_operation}",
180+
])
181+
.to(handlers::utils_action),
182+
),
175183
)
176184
.service(
177185
web::scope("/ui").route("/state", web::get().to(handlers::ui_state_get)),

src/server/handlers.rs

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mod ui_state_get;
1818
mod user_data_get;
1919
mod user_data_set;
2020
mod user_get;
21+
mod utils_action;
2122
mod utils_handle_action;
2223
mod webhooks_responders;
2324

@@ -45,6 +46,7 @@ pub use self::{
4546
user_data_get::user_data_get,
4647
user_data_set::user_data_set,
4748
user_get::user_get,
49+
utils_action::utils_action,
4850
utils_handle_action::utils_handle_action,
4951
webhooks_responders::webhooks_responders,
5052
};

0 commit comments

Comments
 (0)