diff --git a/src/main.rs b/src/main.rs index c1e7bda..12d22d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -117,18 +117,23 @@ pub mod init { } } +// TODO: Move elsewhere fn get_full() -> String { get_address() + ":" + &get_port() } +// TODO: Move elsewhere fn get_address() -> String { String::from("0.0.0.0") } +// TODO: Move elsewhere fn get_port() -> String { String::from("3000") } +// TODO: Move elsewhere pub const ROOT: &str = "/"; +// TODO: Move elsewhere // basic handler that responds with a static string pub async fn root() -> &'static str { "Hello, World!"