create a serveconfig builder

This commit is contained in:
Evan Almloff committed 2023-03-30 11:03:07 -05:00
1 parent 1d395d572f
commit 1be48c4aa8
4 files changed
+74 -39

No files matched your search

@@ -17,12 +17,7 @@ fn main() {
.serve(
axum::Router::new()
.serve_dioxus_application(
"Hello, world!",
"hello-world",
None,
None,
"",
app,
ServeConfig::new(app).head(r#"<title>Hello World!</title>"#),
)
.into_make_service(),
)