Skip to content

moooon

Motir

Vibe your whole project. Bring an idea — Motir's three AI layers plan it, track it, and ship it, end to end. You're looking at Motir, built in Motir.

  • Vibe Project
  • Open Source
  • AI Agent
  • AI Loop
1
requests
0
upvotes
145
planned
1,361
shipped

Motir · Work items

MOTIR-794Done

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

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