generated from Patagia/template-nix
Compare commits
1 commit
f61563dcae
...
46dffee975
Author | SHA1 | Date | |
---|---|---|---|
46dffee975 |
1 changed files with 3 additions and 3 deletions
|
@ -9,16 +9,16 @@ use systemd_ipc::io_systemd_hostname::{self, VarlinkClientInterface};
|
|||
|
||||
use crate::context::ControllerContext;
|
||||
|
||||
/// Version and build information
|
||||
/// Machine information
|
||||
#[derive(Serialize, JsonSchema)]
|
||||
struct MachineInfo {
|
||||
machine_id: String,
|
||||
}
|
||||
|
||||
/// Fetch machine id
|
||||
/// Fetch machine info
|
||||
#[endpoint {
|
||||
method = GET,
|
||||
path = "/machine_id",
|
||||
path = "/machine_info",
|
||||
}]
|
||||
#[trace_request]
|
||||
pub async fn describe(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue