codex-helper-core 0.15.0

Core library for codex-helper.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

pub(super) fn healthcheck_routes(proxy: ProxyService) -> Router {
    let start_proxy = proxy.clone();

    Router::new()
        .route(
            API_V1_HEALTHCHECK_START,
            post(move |payload| start_health_checks(start_proxy.clone(), payload)),
        )
        .route(
            API_V1_HEALTHCHECK_CANCEL,
            post(move |payload| cancel_health_checks(proxy.clone(), payload)),
        )
}