app: Implement disconnection & leaving an household
This commit is contained in:
parent
a90b87e849
commit
68fa303a38
3 changed files with 127 additions and 3 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue