Sha256: b92303534f38cee4b3be010425427934fc55e2265f87cfdb034e87db7a8499ef
Contents?: true
Size: 382 Bytes
Versions: 1
Compression:
Stored size: 382 Bytes
Contents
module Api module V1 class ProjectsController < ApplicationController before_action :api_authenticate! skip_before_action :verify_authenticity_token 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.8.0.pre2 | app/controllers/api/v1/projects_controller.rb |