mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 19:33:30 +00:00
switched controller to commands file, added logger on init function
This commit is contained in:
35
src/commands.rs
Normal file
35
src/commands.rs
Normal file
@@ -0,0 +1,35 @@
|
||||
pub(crate) mod markers {
|
||||
use log::info;
|
||||
|
||||
pub fn get(placeholder: String) -> &'static str {
|
||||
info!("{}", placeholder);
|
||||
|
||||
return "not implemented yet";
|
||||
}
|
||||
|
||||
pub fn post(placeholder: Vec<String>) -> &'static str {
|
||||
for item in placeholder {
|
||||
info!("Item: {}", item)
|
||||
}
|
||||
|
||||
return "not implemented yet";
|
||||
}
|
||||
|
||||
pub fn delete(placeholder: String) -> &'static str {
|
||||
info!("{}", placeholder);
|
||||
|
||||
return "not implemented yet";
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) mod casevac {
|
||||
pub fn get(placeholder: String) -> String {
|
||||
format!("ERROR: Not implemented yet, {}", placeholder)
|
||||
}
|
||||
pub fn post(placeholder: String) -> String {
|
||||
format!("ERROR: Not implemented yet, {}", placeholder)
|
||||
}
|
||||
pub fn delete(placeholder: String) -> String {
|
||||
format!("ERROR: Not implemented yet, {}", placeholder)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user