Simplify device routes and use ActiveRecord validations

- Use RESTful DELETE /devices/:id where :id can be token or database ID
- Remove redundant unregister collection route
- Remove old Users::DevicesController
- Return 404 when device not found instead of silently succeeding
- Return 422 for invalid platform via ActiveRecord validation
- Update action_push_native to main branch (includes validate: true on enum)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Rosa Gutierrez
2026-01-21 13:20:14 +01:00
parent 9d32f3e845
commit d3cc79a5bc
6 changed files with 30 additions and 77 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ gem "console1984", bc: "console1984"
gem "audits1984", bc: "audits1984", branch: "flavorjones/coworker-api"
# Native push notifications (iOS/Android)
gem "action_push_native", github: "rails/action_push_native", branch: "use-registered-config-path"
gem "action_push_native", github: "rails/action_push_native"
# Telemetry
gem "rails_structured_logging", bc: "rails-structured-logging"