Class: Passkit::Api::V1::LogsController

Inherits:
ActionController::API
  • Object
show all
Defined in:
app/controllers/passkit/api/v1/logs_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
9
10
# File 'app/controllers/passkit/api/v1/logs_controller.rb', line 5

def create
  params[:logs].each do |message|
    Log.create!(content: message)
  end
  render json: {}, status: :ok
end