basic handler that responds with a static string
(state: &State)
| 35 | |
| 36 | // basic handler that responds with a static string |
| 37 | pub async fn root(state: &State) -> anyhow::Result<String> { |
| 38 | let events = root_events(&state.debug_events.lock().unwrap())?; |
| 39 | crate::hbs::render("index", &events) |
| 40 | } |
| 41 | |
| 42 | pub async fn root_data(state: &State) -> anyhow::Result<Vec<RootEvent>> { |
| 43 | let events = state.debug_events.lock().unwrap(); |