This commit is contained in:
azw 2023-11-11 12:08:32 +00:00
parent 887ad6b35e
commit c10d482f9d
2 changed files with 14 additions and 13 deletions

View File

@ -21,18 +21,19 @@ impl f9::app::UserApp for UserApp {
fn init(&mut self) {
App::instance().borrow_mut().add_http_handler(
"Ops$selfChecking".to_string(),
Box::new(
move |ctx: &mut HttpContext| {
ctx.rsp = "Ops$selfChecking".to_string();
}
),
);
App::instance().borrow_mut().add_http_handler(
"Ops$selfChecking1".to_string(),
Box::new(
move |ctx: &mut HttpContext| {
ctx.rsp = "Ops$selfChecking1".to_string();
}
Rc::new(RefCell::new(
move |ctx: &mut HttpContext| {
ctx.rsp = "Ops$selfChecking".to_string();
App::instance().borrow_mut().add_http_handler(
"Ops$selfChecking3".to_string(),
Rc::new(RefCell::new(
move |ctx: &mut HttpContext| {
ctx.rsp = "Ops$selfChecking3".to_string();
}
)),
);
}
)
),
);
}

2
third_party/librust vendored

@ -1 +1 @@
Subproject commit dea499028da4e75cb1ce47df4453cc7e9d3deabf
Subproject commit af0cae3d246dc2ac6a4729c7fc6ce9ee7630d029