1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class StaticController < ApplicationController
6 respond_to :json, :html
8 skip_before_action :find_object_by_uuid
9 skip_before_action :render_404_if_no_object
10 skip_before_action :require_auth_scope, only: [:home, :empty, :login_failure]
15 if !Rails.configuration.Services.Workbench1.ExternalURL.to_s.empty?
16 redirect_to Rails.configuration.Services.Workbench1.ExternalURL.to_s, allow_other_host: true
18 render_not_found "Oops, this is an API endpoint. You probably want to point your browser to an Arvados Workbench site instead."
22 render_not_found "Path not found."