MotirBuilding in public
MOTIR · moooon
onMotir
You’re viewing a public project. Anyone can view it — no account needed. Sign in to submit, upvote, or comment on requests.View-only — you can’t edit work items
MOTIR-794

2.8.3 DELETE /api/work-items/[id] route

Done
Description

Estimate: 25m · Type: code · Depends on: 2.8.2

HTTP layer: DELETE /api/work-items/[id]/route.tsgetSession()workItemsService.deleteWorkItem → map typed errors to status (403 permission, 404 missing). No business logic in the route.

Acceptance criteria

  • DELETE route calls the one service method; permission → 403, missing → 404, success → 200/204.

Context refs

  • app/api/work-items/[id]/route.ts (add DELETE); CLAUDE.md route layer