(
_headers: HeaderMap,
extract::State(state): extract::State<Arc<AppState>>,
)
| 1501 | |
| 1502 | #[axum::debug_handler] |
| 1503 | async fn ipxe_menu_view( |
| 1504 | _headers: HeaderMap, |
| 1505 | extract::State(state): extract::State<Arc<AppState>>, |
| 1506 | ) -> Response { |
| 1507 | let menu = IpxeMenuTemplate { |
| 1508 | mirror_uri: state.boot_origin.as_str(), |
| 1509 | } |
| 1510 | .render() |
| 1511 | .unwrap(); |
| 1512 | |
| 1513 | // error!("ipxe request_headers -> {:?}", headers); |
| 1514 | // ipxe request_headers -> {"connection": "keep-alive", "user-agent": "iPXE/1.21.1+git20231006.ff0f8604", "host": "172.24.11.130:8080"} |
| 1515 | |
| 1516 | // https://ipxe.org/cfg |
| 1517 | // https://ipxe.org/cmd/ |
| 1518 | |
| 1519 | // set mirror-uri ${cwduri} |
| 1520 | |
| 1521 | menu.into_response() |
| 1522 | } |
| 1523 | |
| 1524 | async fn robots_view() -> Html<&'static str> { |
| 1525 | Html( |
nothing calls this directly
no outgoing calls
no test coverage detected