#[cfg(test)] mod tests; #[get("/world")] pub fn world() -> &'static str { "Hello, world!" } #[get("/")] pub fn hello(name: String) -> String { format!("Hello, {}", name) } #[get("/world?&")] pub fn name_age(name: String, age: u16) -> String { format!("Hello, {} who is {} years old!", name, age) }