Skip to content

Commit

Permalink
feat(certificates)!: use proper REST URLs for the certificate utility…
Browse files Browse the repository at this point in the history
… APIs
  • Loading branch information
azasypkin committed Oct 30, 2023
1 parent 8333045 commit e37bcf5
Show file tree
Hide file tree
Showing 26 changed files with 3,412 additions and 1,779 deletions.
10 changes: 9 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,15 @@ pub async fn run(
)
.service(
web::scope("/utils")
.route("/action", web::post().to(handlers::utils_handle_action)),
.route("/action", web::post().to(handlers::utils_handle_action))
.service(
web::resource([
"/{area}/{resource}",
"/{area}/{resource}/{resource_id}",
"/{area}/{resource}/{resource_id}/{resource_operation}",
])
.to(handlers::utils_action),
),
)
.service(
web::scope("/ui").route("/state", web::get().to(handlers::ui_state_get)),
Expand Down
2 changes: 2 additions & 0 deletions src/server/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mod ui_state_get;
mod user_data_get;
mod user_data_set;
mod user_get;
mod utils_action;
mod utils_handle_action;
mod webhooks_responders;

Expand Down Expand Up @@ -45,6 +46,7 @@ pub use self::{
user_data_get::user_data_get,
user_data_set::user_data_set,
user_get::user_get,
utils_action::utils_action,
utils_handle_action::utils_handle_action,
webhooks_responders::webhooks_responders,
};
Loading

0 comments on commit e37bcf5

Please sign in to comment.