chore(openspec): 歸檔 add-role-middleware 並同步主規格
Run Tests / test (pull_request) Successful in 34s

- 新增主規格 role-authorization,更新 feature-test-coverage 的 middleware 描述
- 勾選手動驗證任務 5.1、5.2(23/23)
- CLAUDE.md 授權規範與 openspec/config.yaml 移除「member/provider 只有 auth:sanctum」的過時說明

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-18 00:30:05 +08:00
parent 544894fa55
commit d83d941993
10 changed files with 77 additions and 9 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ context: |
## 後端慣例
- Controller 位於 `app/Http/Controllers/API/`,Swagger 註解位於 `app/Docs/`
- 路由集中於 `routes/api.php`;admin 群組以 `admin` middleware 保護
- member / provider 路由群組目前僅有 `auth:sanctum`,角色檢查需在 Controller 內自行處理
(已知缺口,見 docs/analysis/2026-10-14-project-review-todo.md H1;新增路由時不可假設已有角色保護)
- member / provider 路由群組以 `member`/`provider` middleware 保護(role-authorization spec);
middleware 只擋跨角色,資源所有權仍需在 Controller 內檢查
## API 回應格式
成功:`{ status: true, message?: "...", data: {...} 或 [...] }`