app: Implement disconnection & leaving an household

This commit is contained in:
traxys 2023-05-29 17:24:34 +02:00
parent a90b87e849
commit 68fa303a38
3 changed files with 127 additions and 3 deletions

View file

@ -25,10 +25,12 @@ const API_ROUTE: &str = match option_env!("REGALADE_API_SERVER_BASE") {
Some(v) => v,
};
#[macro_export]
macro_rules! api {
($($arg:tt)*) => {
($($arg:tt)*) => {{
use $crate::API_ROUTE;
&format!("{API_ROUTE}/api/{}", format_args!($($arg)*))
};
}};
}
#[derive(Routable, Debug, Clone, Copy, PartialEq, Eq)]