瀏覽代碼

📝 docs(commands): add documentation for generic-crud-public-create command

- document the steps for creating public read-only routes following generic CRUD development specifications
- include instructions for route creation, API registration, and client method implementation
- note the requirement for 'public' prefix in route paths
yourname 4 月之前
父節點
當前提交
7b8e2a8fd7
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      .roo/commands/generic-crud-public-create.md

+ 12 - 0
.roo/commands/generic-crud-public-create.md

@@ -0,0 +1,12 @@
+---
+description: "通用curd公共只读路由创建指令"
+---
+
+按通用curd开发规范进行公共只读路由创建
+
+步骤
+在src/server/api/public下创建公共只读路由
+注册路由到API   src/server/api.ts
+创建客户端API调用方法   src/client/api.ts
+
+注意: 需要 public 前缀