mirror of
https://github.com/zerotier/ratpack.git
synced 2026-05-22 16:27:23 -07:00
reorg source to be a little clearer re: order of ops
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
+2
-1
@@ -21,11 +21,12 @@ async fn hello(req: Request<Body>, _resp: Option<Response<Body>>, params: Params
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), ServerError> {
|
||||
let mut app = App::new();
|
||||
env_logger::builder()
|
||||
.target(env_logger::Target::Stderr)
|
||||
.filter(None, LevelFilter::Trace)
|
||||
.init();
|
||||
|
||||
let mut app = App::new();
|
||||
app.get("/:name", compose_handler!(log, hello));
|
||||
|
||||
app.serve("127.0.0.1:3000").await?;
|
||||
|
||||
Reference in New Issue
Block a user