Skip to content

Commit 0aa8728

Browse files
committed
docs: Add Phase 5 (Specialized Skills) and recipes for gRPC, SSR, and AI
- Added `docs/cookbook/src/recipes/grpc_integration.md` - Added `docs/cookbook/src/recipes/server_side_rendering.md` - Added `docs/cookbook/src/recipes/ai_integration.md` - Fixed API usage in `docs/cookbook/src/recipes/websockets.md` - Updated `docs/cookbook/src/SUMMARY.md` - Updated `docs/cookbook/src/learning/curriculum.md` with Phase 5 - Updated `docs/.agent/docs_coverage.md` and `docs/.agent/run_report_2025-02-24.md`
1 parent c937bb8 commit 0aa8728

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/cookbook/src/recipes/ai_integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async fn main() {
6969
let app = RustApi::new().route("/users", get(get_users));
7070
7171
println!("Server running on http://127.0.0.1:3000");
72-
RustApi::serve("127.0.0.1:3000", app).await.unwrap();
72+
app.run("127.0.0.1:3000").await.unwrap();
7373
}
7474
```
7575

docs/cookbook/src/recipes/server_side_rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async fn main() {
107107
let app = RustApi::new().route("/", get(index));
108108
109109
println!("Listening on http://localhost:3000");
110-
RustApi::serve("0.0.0.0:3000", app).await.unwrap();
110+
app.run("0.0.0.0:3000").await.unwrap();
111111
}
112112
```
113113

docs/cookbook/src/recipes/websockets.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ async fn main() {
8686
let state = Arc::new(AppState { tx });
8787

8888
let app = RustApi::new()
89-
.route("/ws", get(ws_handler))
90-
.with_state(state);
89+
.state(state)
90+
.route("/ws", get(ws_handler));
9191

92-
RustApi::serve("0.0.0.0:3000", app).await.unwrap();
92+
app.run("0.0.0.0:3000").await.unwrap();
9393
}
9494
```
9595

0 commit comments

Comments
 (0)