Sha256: b24c47cd51dc3327cbdf713c938c13d1f8535c5fe74b5e1d2699594c4f709d6d

Contents?: true

Size: 196 Bytes

Versions: 2

Compression:

Stored size: 196 Bytes

Contents

module RailsApi
  class ArticlesController < ApplicationController
    before_action :authenticate_api_user!

    respond_to :json

    def index
      respond_with(Article.all)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
g5_authenticatable_api-1.0.0 spec/dummy/app/controllers/rails_api/articles_controller.rb
g5_authenticatable_api-1.0.0.pre.1 spec/dummy/app/controllers/rails_api/articles_controller.rb