finish server function docs
This commit is contained in:
1 parent
515aee6c3c
commit
ab1de6e53f
4 files changed
+163
-11
No files matched your search
@@ -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(),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user