added initial version of the websocket branch

This commit is contained in:
Valmo Trindade
2024-10-16 13:08:00 -03:00
parent 57d633e5a8
commit 1890b7f490
5 changed files with 149 additions and 297 deletions

View File

@@ -1,9 +1,7 @@
use arma_rs::{arma, Extension, Group};
use util::get_uuid;
use arma_rs::{arma, Extension};
mod commands;
mod structs;
mod tests;
mod util;
#[arma]
pub fn init() -> Extension {
@@ -29,22 +27,9 @@ pub fn init() -> Extension {
log4rs::init_config(config).unwrap();
Extension::build()
.command("uuid", get_uuid)
.command("get_auth_token", commands::get_auth_token)
.group(
"markers",
Group::new()
.command("get", commands::markers::get)
.command("post", commands::markers::post)
.command("post_debug", commands::markers::post_debug)
.command("delete", commands::markers::delete),
)
.group(
"casevac",
Group::new()
.command("get", commands::casevac::get)
.command("post", commands::casevac::post)
.command("delete", commands::casevac::delete),
)
.command("start", commands::start)
.command("stop", commands::stop)
.command("ping", commands::send_ping)
.command("location", commands::send_location)
.finish()
}