mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Mirror seeded_not_replicated command in test-http-api
This commit is contained in:
@@ -64,6 +64,10 @@ pub fn router(ctx: Context) -> Router {
|
||||
.route("/repo_count", post(repo_count_handler))
|
||||
.route("/list_repos", post(repo_root_handler))
|
||||
.route("/list_repos_summary", post(list_repos_summary_handler))
|
||||
.route(
|
||||
"/seeded_not_replicated",
|
||||
post(seeded_not_replicated_handler),
|
||||
)
|
||||
.route("/repo_by_id", post(repo_handler))
|
||||
.route("/version", post(version_handler))
|
||||
.route("/diff_stats", post(diff_stats_handler))
|
||||
@@ -137,6 +141,11 @@ async fn list_repos_summary_handler(State(ctx): State<Context>) -> impl IntoResp
|
||||
Ok::<_, Error>(Json(repos))
|
||||
}
|
||||
|
||||
async fn seeded_not_replicated_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
||||
let rids = ctx.seeded_not_replicated()?;
|
||||
Ok::<_, Error>(Json(rids))
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct RepoBody {
|
||||
pub rid: identity::RepoId,
|
||||
|
||||
Reference in New Issue
Block a user