2012-10-04 13:45:49 +01:00
|
|
|
class Api::V1::ArchesController < Api::V1::BaseController
|
2016-03-24 15:59:12 +00:00
|
|
|
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
|
2015-03-23 23:27:23 +00:00
|
|
|
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
|