Sha256: 14baa67743354f0be655ecbc3268f6329d50e6c3b62f3bc8ba369b00efeb89d6

Contents?: true

Size: 429 Bytes

Versions: 9

Compression:

Stored size: 429 Bytes

Contents

module Api
  module V1
    class ProjectsController < ApplicationController
      before_action :api_authenticate!
      skip_before_action :verify_authenticity_token
      skip_around_action :with_current_project

      rescue_from ActiveRecord::RecordNotFound do
        head 404
      end

      def index
        @projects = Project.unretired
        render json: ProjectPresenter.new(@projects)
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
houston-core-0.9.2 app/controllers/api/v1/projects_controller.rb
houston-core-0.9.1 app/controllers/api/v1/projects_controller.rb
houston-core-0.9.0 app/controllers/api/v1/projects_controller.rb
houston-core-0.9.0.rc1 app/controllers/api/v1/projects_controller.rb
houston-core-0.8.4 app/controllers/api/v1/projects_controller.rb
houston-core-0.8.3 app/controllers/api/v1/projects_controller.rb
houston-core-0.8.2 app/controllers/api/v1/projects_controller.rb
houston-core-0.8.1 app/controllers/api/v1/projects_controller.rb
houston-core-0.8.0 app/controllers/api/v1/projects_controller.rb