]>
git.proxmox.com Git - proxmox-backup.git/blob - src/api2/ping.rs
1 //! Cheap check if the API daemon is online.
4 use serde_json
::{json, Value}
;
6 use proxmox_router
::{Router, Permission}
;
7 use proxmox_schema
::api
;
11 description
: "Dummy ping",
15 description
: "Always true",
21 description
: "Anyone can access this, because it's used for a cheap check if the API daemon is online.",
22 permission
: &Permission
::World
,
25 /// Dummy method which replies with `{ "pong": True }`
26 pub fn ping() -> Result
<Value
, Error
> {
31 pub const ROUTER
: Router
= Router
::new()
32 .get(&API_METHOD_PING
);