Update tRPC route references in docs after namespace flattening

This commit is contained in:
CPTProgrammer
2026-07-11 05:39:08 +08:00
parent e321ecfd70
commit 24637d3db3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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/` 目录说明