provide a nicer builder API

This commit is contained in:
Evan Almloff committed 2023-04-01 17:00:09 -05:00
1 parent 5ffdb4dbed
commit 71ddd50963
6 files changed
+64 -43

No files matched your search

@@ -23,11 +23,7 @@ fn main() {
axum::Server::bind(&addr)
.serve(
axum::Router::new()
.serve_dioxus_application(
ServeConfig::new(app, ()).head(r#"<title>Hello World!</title>"#),
None,
)
.with_state(SSRState::default())
.serve_dioxus_application("", ServeConfigBuilder::new(app, ()))
.into_make_service(),
)
.await