Sha256: 37207068387556aa27b020102ab9a8a313af4b101fb200e5859c2f8487a19e97
Contents?: true
Size: 323 Bytes
Versions: 4
Compression:
Stored size: 323 Bytes
Contents
module Api::V1 module SimpleAdmin class BaseController < ActionController::API before_action :verify_key_is_valid! private def verify_key_is_valid! return head(:forbidden) unless request.headers['SimpleAdmin-Secret-Key'] == ENV['SIMPLE_ADMIN_SECRET_KEY'] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems