What: Add an endpoint that allows reordering course modules.
Why: Course creators need to adjust module order as content evolves. Currently there's no way to reorder modules through the API.
Scope: Create endpoint accepting { moduleIds: string[] } in the desired order. Validate all module IDs belong to the course. Update the order field for each module.
Acceptance criteria:
- Accepts ordered array of module IDs
- Validates all IDs belong to the course
- Updates module order atomically
- Changes are logged in audit logs
Technical context: src/modules/courses/course.service.ts — course operations. src/database/schema.ts — schema definitions.
What: Add an endpoint that allows reordering course modules.
Why: Course creators need to adjust module order as content evolves. Currently there's no way to reorder modules through the API.
Scope: Create endpoint accepting
{ moduleIds: string[] }in the desired order. Validate all module IDs belong to the course. Update the order field for each module.Acceptance criteria:
Technical context:
src/modules/courses/course.service.ts— course operations.src/database/schema.ts— schema definitions.