- commit
- db94dd9
- parent
- 45e804f
- author
- Eric Bower
- date
- 2024-02-16 18:45:07 +0000 UTC
docs: nav
2 files changed,
+4,
-1
+3,
-0
1@@ -47,6 +47,9 @@ func main() {
2 Children: []*pdocs.Sitemap {
3 pdocs.AnchorTagSitemap("Enforcing fetch response type"),
4 pdocs.AnchorTagSitemap("The same API endpoints but different logic"),
5+ pdocs.AnchorTagSitemap("Using variables inside the API endpoint"),
6+ { Text: "Using ctx.req", Href: "using-ctxreq" },
7+ pdocs.AnchorTagSitemap("Middleware automation"),
8 },
9 },
10 {
+1,
-1
1@@ -162,7 +162,7 @@ const fetchUsers = api.get("/users", function*(ctx, next) {
2 }
3 ```
4
5-# Middleware
6+# Middleware automation
7
8 Because endpoints use the same powerful middleware system employed by thunks, we
9 can do quite a lot of automating for API requests -- to the point where an