rustploy 0.1.38

Rustploy PaaS daemon — lightweight self-hosted deployment platform
1
2
3
4
5
6
7
8
9
10
11
//! `Command::GitProviderList`: provedores git conectados, sem os tokens.

use crate::bootstrap::state::AppState;
use shared::Response;

pub async fn handle(state: AppState) -> Response {
    match crate::store::git_providers::list(&state.db).await {
        Ok(ps) => Response::GitProviders(ps.iter().map(|p| p.to_public()).collect()),
        Err(e) => Response::err("DatabaseError", e.to_string()),
    }
}