Sha256: 163a130ff60db8978b06ab92accd6d480ea595f4b506ca6b3652aa1a10a1eabc

Contents?: true

Size: 469 Bytes

Versions: 18

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

module RailsApi
  class SecureResourcesController < ApplicationController
    before_action :authenticate_api_user!, unless: :is_navigational_format?
    before_action :authenticate_user!, if: :is_navigational_format?

    def create
      render json: { secure: 'data' }
    end

    def show
      respond_to do |format|
        format.html { render }
        format.json { render json: { secure: 'data' } }
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
g5_authenticatable-1.1.4 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.4.rc.3 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.4.rc.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.4.rc.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2.pre.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2.rc.5 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2.rc.4 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2.rc.3 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2.rc.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.2.rc.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.1.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.0.0 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.0.0.pre.4 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.0.0.pre.3 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.0.0.pre.2 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb
g5_authenticatable-1.0.0.pre.1 spec/dummy/app/controllers/rails_api/secure_resources_controller.rb