Class: Collavre::Api::V1::Mobile::BaseController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- Collavre::Api::V1::Mobile::BaseController
- Defined in:
- app/controllers/collavre/api/v1/mobile/base_controller.rb
Overview
Shared base for the voice-companion mobile API. Inherits Doorkeeper bearer auth from Api::V1::BaseController.
★ The API base controller authenticates the token but does NOT run the host app’s locale around_action, so I18n would otherwise serve the process-default locale. Every persisted/spoken string here must match the speaker, so we wrap every action in I18n.with_locale (app-supplied ‘locale` param wins, else the user’s stored locale).
Direct Known Subclasses
AgentEventsController, DevicesController, VoiceCommandsController