14946: Updates Dockerfiles for building & testing packages.
[arvados.git] / apps / workbench / app / controllers / status_controller.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class StatusController < ApplicationController
6   skip_around_action :require_thread_api_token
7   skip_before_action :find_object_by_uuid
8   def status
9     # Allow non-credentialed cross-origin requests
10     headers['Access-Control-Allow-Origin'] = '*'
11     resp = {
12       apiBaseURL: arvados_api_client.arvados_v1_base.sub(%r{/arvados/v\d+.*}, '/'),
13       version: AppVersion.hash,
14     }
15     render json: resp
16   end
17 end