1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class Arvados::V1::KeepServicesController < ApplicationController
7 skip_before_action :find_object_by_uuid, only: :accessible
8 skip_before_action :render_404_if_no_object, only: :accessible
9 skip_before_action :require_auth_scope, only: :accessible
11 def find_objects_for_index
12 # all users can list all keep services
13 @objects = model_class.where('1=1')
18 if request.headers['X-External-Client'] == '1'
19 @objects = model_class.where('service_type=?', 'proxy')
21 @objects = model_class.where(model_class.arel_table[:service_type].not_eq('proxy'))