mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:13:29 +00:00
added initial version of the websocket branch
This commit is contained in:
25
src/lib.rs
25
src/lib.rs
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user