agentmux_srv/server/pr_flow_handler.rs
1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! `GET /api/v1/pr-flow`: the last reviews, check results and merges of agents' PRs this srv was told of,
5//! oldest first, as ids, states and times only (`backend::pr_flow`), and when the newest notice came. In
6//! memory, so empty after a restart. Read-only.
7
8use axum::response::{IntoResponse, Json};
9
10pub async fn handle_pr_flow() -> impl IntoResponse {
11 Json(crate::backend::pr_flow::recent())
12}