MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / admin

Function admin

crates/server/src/router/api/server.rs:1527–1534  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1525 Some(serde_json::to_string(&filtered).unwrap_or_else(|_| "[]".to_string()))
1526}
1527
1528#[cfg(test)]
1529mod cleanup_tests {
1530 use super::{DEFAULT_SERVER_NAME, collect_orphan_server_ids, remove_ids_from_json};
1531 use crate::entity::server;
1532 use chrono::Utc;
1533 use serverbee_common::constants::CAP_DEFAULT;
1534 use std::collections::HashSet;
1535
1536 fn make_server(id: &str, name: &str, os: Option<&str>) -> server::Model {
1537 let now = Utc::now();

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected