switched controller to commands file, added logger on init function

This commit is contained in:
Valmo Trindade
2024-09-11 19:15:01 -03:00
parent 69093504b7
commit cb9ca9cd20
2 changed files with 68 additions and 40 deletions

35
src/commands.rs Normal file
View 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)
}
}