Sha256: 26dfe71c48dc6d681c90cd1fc9c30e58cdd159d87b914d7ac49ef8f671fe55f8

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

module JobNotifier
  class JobsController < ActionController::Base
    skip_before_action :verify_authenticity_token

    def index
      render json: Job.unnotified_by_identifier(params[:identifier])
    end

    def update
      Job.notify_by_identifier(params[:identifier])
      head :no_content
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
job_notifier-1.2.2 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.2.1 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.2.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.1.1 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.1.0 app/controllers/job_notifier/jobs_controller.rb
job_notifier-1.0.0 app/controllers/job_notifier/jobs_controller.rb