rosa-build/app/controllers/api/v1/arches_controller.rb

11 lines
299 B
Ruby
Raw Permalink Normal View History

2012-10-04 13:45:49 +01:00
class Api::V1::ArchesController < Api::V1::BaseController
skip_before_action :check_auth if APP_CONFIG['anonymous_access']
2015-03-04 23:19:19 +00:00
before_action :authenticate_user! unless APP_CONFIG['anonymous_access']
2012-10-04 13:45:49 +01:00
def index
authorize :arch
2012-10-10 13:02:59 +01:00
@arches = Arch.order(:id).paginate(paginate_params)
2012-10-04 13:45:49 +01:00
end
2014-08-28 21:22:11 +01:00
end