Sha256: 47f39ab8aa64f49694163c5b830239a04a0f2be221a3b00efe11848bb281ff71

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

module Lit
  module Api
    module V1
      class BaseController < ActionController::Base
        layout nil
        respond_to :json
        before_filter :authenticate_requests!


        private
          def authenticate_requests!
            authenticate_or_request_with_http_token do |token, options|
              Lit.api_key == token
            end
          end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lit-0.2.4 app/controllers/lit/api/v1/base_controller.rb
lit-0.2.3 app/controllers/lit/api/v1/base_controller.rb
lit-0.2.2 app/controllers/lit/api/v1/base_controller.rb
lit-0.2.1 app/controllers/lit/api/v1/base_controller.rb
lit-0.2.0 app/controllers/lit/api/v1/base_controller.rb
lit-0.1.0 app/controllers/lit/api/v1/base_controller.rb