Sha256: 366bd2db32acd60311e9344a2695c6611951ef8d41ab59d320e01f5b75e0b54e

Contents?: true

Size: 316 Bytes

Versions: 3

Compression:

Stored size: 316 Bytes

Contents

class Wechat::Validator::ServerValidationsController < ::Wechat::Validator::ApplicationController

  include ::Wechat::Validator::Concerns::SignatureValidator

  def index

    token = Rails.application.secrets.wechat_validation_token
    validate_signature token

  end

  def create
    render text: ''
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wechat-validator-1.1 app/controllers/wechat/validator/server_validations_controller.rb
wechat-validator-1.0 app/controllers/wechat/validator/server_validations_controller.rb
wechat-validator-0.3.2 app/controllers/wechat/validator/server_validations_controller.rb