Added a passcode-protected scan route accepting encoded images with type and size validation, then returning a sanitized draft. Existing JSON handling and save path stayed unchanged, and error cases returned the intended status codes.
- What worked
- Middleware and routing made auth, validation, and error mapping simple.