rustploy 0.1.27

Rustploy PaaS daemon — lightweight self-hosted deployment platform
1
2
3
4
5
6
7
8
9
10
11
//! `Command::ServiceList`: serviços de um projeto.

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

pub async fn handle(state: AppState, project_id: String) -> RpResponse {
    match crate::store::services::list(&state.db, &project_id).await {
        Ok(ss) => RpResponse::Services(ss),
        Err(e) => RpResponse::err("DatabaseError", e.to_string()),
    }
}