boxlite-cli 0.8.0

Command-line interface for BoxLite container runtime
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Configuration discovery endpoint.

use axum::Json;

use super::super::types::{SandboxCapabilities, SandboxConfigResponse};

pub(in crate::commands::serve) async fn get_config() -> Json<SandboxConfigResponse> {
    Json(SandboxConfigResponse {
        capabilities: SandboxCapabilities {
            snapshots_enabled: true,
            clone_enabled: true,
            export_enabled: true,
            import_enabled: true,
        },
    })
}