From 327c338786f1cca92c669adc5400997e2ad771dc Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 26 Mar 2022 03:14:38 +0000 Subject: refactor(router): rename get to mount --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index de5693d..04e19a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -105,10 +105,10 @@ impl Router { /// /// ```rust /// windmark::Router::new() - /// .get("/", |_| "This is the index page!".into()) - /// .get("/test", |_| "This is a test page!".into()); + /// .mount("/", |_| "This is the index page!".into()) + /// .mount("/test", |_| "This is a test page!".into()); /// ``` - pub fn get( + pub fn mount( &mut self, route: &str, handler: fn(&TcpStream) -> String, -- cgit v1.2.3