finish server function docs

This commit is contained in:
Evan Almloff committed 2023-05-04 09:57:11 -05:00
1 parent 515aee6c3c
commit ab1de6e53f
4 files changed
+163 -11

No files matched your search

+2 -2
View File
@@ -31,11 +31,11 @@ fn main() {
// Render the application. This will serialize the root props (the intial count) into the HTML
.route(
"/",
get(move |Path(intial_count): Path<usize>, State(ssr_state): State<SSRState>| async move { axum::body::Full::from(
get(move | State(ssr_state): State<SSRState>| async move { axum::body::Full::from(
ssr_state.render(
&ServeConfigBuilder::new(
app,
intial_count,
0,
)
.build(),
)