mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 16:03:31 +00:00
added fts and ots handling on extension
This commit is contained in:
23
src/fts_api.rs
Normal file
23
src/fts_api.rs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
pub mod markers {
|
||||||
|
use crate::structs::Marker;
|
||||||
|
|
||||||
|
pub fn get_all() -> String {
|
||||||
|
return "not implemented yet".to_string()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn get(_: Marker) -> String {
|
||||||
|
return "not implemented yet".to_string()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn post (_: Marker) -> String {
|
||||||
|
return "not implemented yet".to_string()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn patch (_: Marker) -> String {
|
||||||
|
return "not implemented yet".to_string();
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn delete (_: Marker) -> String {
|
||||||
|
return "not implemented yet".to_string();
|
||||||
|
}
|
||||||
|
}
|
||||||
22
src/lib.rs
22
src/lib.rs
@@ -3,7 +3,8 @@ mod commands;
|
|||||||
mod structs;
|
mod structs;
|
||||||
mod tests;
|
mod tests;
|
||||||
mod websocket;
|
mod websocket;
|
||||||
mod api;
|
mod ots_api;
|
||||||
|
mod fts_api;
|
||||||
mod util;
|
mod util;
|
||||||
|
|
||||||
#[arma]
|
#[arma]
|
||||||
@@ -41,11 +42,20 @@ pub fn init() -> Extension {
|
|||||||
.group(
|
.group(
|
||||||
"ots_api",
|
"ots_api",
|
||||||
Group::new()
|
Group::new()
|
||||||
.command("get", api::markers::get)
|
.command("get", ots_api::markers::get)
|
||||||
.command("get_auth_token", api::get_auth_token)
|
.command("get_auth_token", ots_api::get_auth_token)
|
||||||
.command("post", api::markers::post)
|
.command("post", ots_api::markers::post)
|
||||||
.command("post_debug", api::markers::post_debug)
|
.command("post_debug", ots_api::markers::post_debug)
|
||||||
.command("delete", api::markers::delete),
|
.command("delete", ots_api::markers::delete),
|
||||||
|
)
|
||||||
|
.group(
|
||||||
|
"fts_api",
|
||||||
|
Group::new()
|
||||||
|
.command("get", fts_api::markers::get)
|
||||||
|
.command("get_all", fts_api::markers::get_all)
|
||||||
|
.command("post", fts_api::markers::post)
|
||||||
|
.command("patch", fts_api::markers::patch)
|
||||||
|
.command("delete", fts_api::markers::delete)
|
||||||
)
|
)
|
||||||
.finish()
|
.finish()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user