Added TODOs

This commit is contained in:
kdeng00
2025-05-23 20:01:35 -04:00
parent 56e3b09dda
commit b0273d6239
+5
View File
@@ -117,18 +117,23 @@ pub mod init {
} }
} }
// TODO: Move elsewhere
fn get_full() -> String { fn get_full() -> String {
get_address() + ":" + &get_port() get_address() + ":" + &get_port()
} }
// TODO: Move elsewhere
fn get_address() -> String { fn get_address() -> String {
String::from("0.0.0.0") String::from("0.0.0.0")
} }
// TODO: Move elsewhere
fn get_port() -> String { fn get_port() -> String {
String::from("3000") String::from("3000")
} }
// TODO: Move elsewhere
pub const ROOT: &str = "/"; pub const ROOT: &str = "/";
// TODO: Move elsewhere
// basic handler that responds with a static string // basic handler that responds with a static string
pub async fn root() -> &'static str { pub async fn root() -> &'static str {
"Hello, World!" "Hello, World!"