diff --git a/README.md b/README.md index 8df3a7e..1cb177b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ sofie = { version = "0.1.0", features = ["vetis"] } Here's how simple it is to create a web application with Sofie: ```rust -use sofie::Sofie; +use sofie::App; use http_body_util::{Full}; use bytes::Bytes; use hyper::Response; @@ -35,9 +35,9 @@ use hyper::Response; async fn main() -> Result<(), Box> { std_logger::Config::logfmt().init(); - let mut sophia = Sophia::new(config); + let mut app = App::new(); - sophia.serve(|_| async move { + app.serve(|_| async move { Ok(Response::new(Full::new(Bytes::from("Hello World")))) }).await?;