Skip to content

Commit

Permalink
featremove GET method in \/debug path
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Dec 5, 2024
1 parent 66c0445 commit 252f686
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/servers/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,22 +705,12 @@ impl HttpServer {
"/debug",
Router::new()
// handler for changing log level dynamically
.route(
"/log_level",
routing::get(dyn_log::dyn_log_handler).post(dyn_log::dyn_log_handler),
)
.route("/log_level", routing::post(dyn_log::dyn_log_handler))
.nest(
"/prof",
Router::new()
.route(
"/cpu",
routing::get(pprof::pprof_handler).post(pprof::pprof_handler),
)
.route(
"/mem",
routing::get(mem_prof::mem_prof_handler)
.post(mem_prof::mem_prof_handler),
),
.route("/cpu", routing::post(pprof::pprof_handler))
.route("/mem", routing::post(mem_prof::mem_prof_handler)),
),
)
}
Expand Down

0 comments on commit 252f686

Please sign in to comment.