Add a simple /{id} CRUD resource for projects on the Huma-backed /api/v2,
mirroring labels.go. Exposes the expand query param (value "permissions")
which surfaces the caller's max permission per project on both list and read.
The handler stays standard (DoReadAll/DoReadOne/DoCreate/DoUpdate/DoDelete);
the model's ReadOne keeps handling the Favorites pseudo-project and
saved-filter-backed projects.
Self-registers via init() -> AddRouteRegistrar; no routes.go change.
projectusers is intentionally out of scope.
|
||
|---|---|---|
| .. | ||
| scalar | ||
| admin_projects.go | ||
| avatar.go | ||
| avatar_upload.go | ||
| docs.go | ||
| errors.go | ||
| errors_test.go | ||
| huma.go | ||
| labels.go | ||
| project_views.go | ||
| projects.go | ||
| registry.go | ||
| task_comments.go | ||
| task_duplicate.go | ||
| teams.go | ||
| types.go | ||