# Repository POST create route — fixed locally

The native Task form reached `/repository/create` and received 404 even though source appeared to declare POST. The handler stacked `@Put('create')` and `@Post('create')`. Nest stores a single request-method metadata value; the outer PUT decorator replaced POST.

The controller now has distinct POST and PUT handlers. PUT delegates to the same creation method, preserving organization, acting user, create permission and root-group protection. The mobile client remains unchanged.

Four regression checks pass: POST and PUT independently register the create path and both forward organization, data and acting user. Backend TypeScript compilation passes. [Test output](assets/repository-create-route/tests.txt).

Live local acceptance: the retained Android form saved successfully, returned to Tasks, and reopened with title **Send linen samples to Maya Bennett**, note **Send the two samples discussed in the consultation**, status **New**, due date **2026-09-25**. A full force-stop/relaunch and fresh Tasks fetch retained it. [Reopened task](assets/mobile-local/18-task-saved-reopened.png), [after restart](assets/mobile-local/19-task-after-restart.png). One new training task was created. No production deployment.

The separate date-label defect is also fixed: calendar-day comparison replaces truncated elapsed hours. Four tests cover tomorrow within24 hours, yesterday, same day, daylight-saving dates and year rollover. The rebuilt Android app shows **Due tomorrow** for2026-09-25 on24 September. [Native result](assets/mobile-local/20-task-due-tomorrow.png), [tests](assets/repository-create-route/due-date-tests.txt).

Studio startup was recovered with one shared React resolution (`resolve.dedupe`) and HMR enabled in the recovery runner. With HMR disabled, Vite dependency re-optimization left the browser using different cache versions. After optimization/reload, Home and CRM load with no page errors. The source builder config now deduplicates React; the persistent runner permits optimizer reloads. This was a development-runner repair, not a production application outage. Desktop Maya readback shows the saved Notes, source Referral, value4800 and score50. [Desktop verification](assets/mobile-local/21-desktop-notes-score.png).
