Sha256: e0d1bb4985dcfe85c58aa443e687f1354995203dc411d6ff3939704d45c6e461

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

class WcoEmail::ApiController < ActionController::Base

  before_action :check_credentials

  ##
  ## private
  ##
  private

  def check_credentials
    if params[:secret] != AWS_SES_LAMBDA_SECRET
      render status: 400, json: { status: 400 }
      return
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wco_email-0.1.1.2 app/controllers/wco_email/api_controller.rb