Create metadata #133
@@ -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!"
|
||||||
|
|||||||
Reference in New Issue
Block a user