Update tRPC route references in docs after namespace flattening
This commit is contained in:
+2
-2
@@ -41,8 +41,8 @@
|
||||
|
||||
仅发布功能使用 tRPC(需 subscription 推送实时进度),在 `src/app/api/publish/[trpc]/route.ts` 中定义唯一的 HTTP 入口,前端通过 tRPC Client 调用:
|
||||
|
||||
- 变更:`trpc.release.publish.useMutation()`
|
||||
- 订阅:`trpc.release.progress.useSubscription(...)`
|
||||
- 变更:`trpc.publish.useMutation()`
|
||||
- 订阅:`trpc.progress.useSubscription(...)`
|
||||
|
||||
### `src/` 目录说明
|
||||
|
||||
|
||||
Reference in New Issue
Block a user