provide a nicer builder API
This commit is contained in:
1 parent
5ffdb4dbed
commit
71ddd50963
6 files changed
+64
-43
No files matched your search
@@ -19,9 +19,7 @@ fn main() {
|
||||
tokio::runtime::Runtime::new()
|
||||
.unwrap()
|
||||
.block_on(async move {
|
||||
let routes = serve_dioxus_application(
|
||||
ServeConfig::new(app, ()).head(r#"<title>Hello World!</title>"#),
|
||||
);
|
||||
let routes = serve_dioxus_application("", ServeConfigBuilder::new(app, ()));
|
||||
warp::serve(routes).run(([127, 0, 0, 1], 8080)).await;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user