use serde_json::Value;
use super::Endpoint;
#[derive(Debug, Default, Clone)]
pub struct GetHeartbeat;
impl Endpoint for GetHeartbeat {
type Output = Value;
fn method(&self) -> &'static str {
"GET"
}
fn path(&self) -> String {
"/api/heartbeat".into()
}
}
#[derive(Debug, Default, Clone)]
pub struct GetStats;
impl Endpoint for GetStats {
type Output = Value;
fn method(&self) -> &'static str {
"GET"
}
fn path(&self) -> String {
"/api/stats".into()
}
}
#[derive(Debug, Default, Clone)]
pub struct GetUsersMe;
impl Endpoint for GetUsersMe {
type Output = Value;
fn method(&self) -> &'static str {
"GET"
}
fn path(&self) -> String {
"/api/users/me".into()
}
}