validator: startup messages for REST API

This commit is contained in:
Dave Hrycyszyn
2020-03-16 14:07:27 +00:00
parent 5af61d161a
commit aaee1bf49a
+3 -1
View File
@@ -9,8 +9,10 @@ impl Api {
}
pub async fn run(self) {
let port = 3000;
println!("* starting REST API on localhost:{}", port);
Iron::new(|_: &mut Request| Ok(Response::with((status::Ok, "Hello World!"))))
.http("localhost:3000")
.http(format!("localhost:{}", port))
.unwrap();
}
}