somleng/somleng

View on GitHub
app/controllers/services/tts_events_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Services
  class TTSEventsController < ServicesController
    def create
      validate_request_schema(
        with: TTSEventRequestSchema,
        location: nil,
      ) do |permitted_params|
        TTSEvent.create!(permitted_params)
      end
    end

    private

    def respond_with_resource(*)
      head(:created)
    end
  end
end