projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '10291-really-disable-apis' closes #10291
[arvados.git]
/
services
/
api
/
app
/
controllers
/
static_controller.rb
diff --git
a/services/api/app/controllers/static_controller.rb
b/services/api/app/controllers/static_controller.rb
index 6ee46e0e4e6baf7c5d09e0eba4ddc4bcef305679..9c66f018723fdfd05c363d744ee45b6fa068fa66 100644
(file)
--- a/
services/api/app/controllers/static_controller.rb
+++ b/
services/api/app/controllers/static_controller.rb
@@
-3,7
+3,7
@@
class StaticController < ApplicationController
skip_before_filter :find_object_by_uuid
skip_before_filter :render_404_if_no_object
skip_before_filter :find_object_by_uuid
skip_before_filter :render_404_if_no_object
- skip_before_filter :require_auth_scope,
:only => [ :home, :login_failure
]
+ skip_before_filter :require_auth_scope,
only: [:home, :empty, :login_failure
]
def home
respond_to do |f|
def home
respond_to do |f|
@@
-11,7
+11,7
@@
class StaticController < ApplicationController
if Rails.configuration.workbench_address
redirect_to Rails.configuration.workbench_address
else
if Rails.configuration.workbench_address
redirect_to Rails.configuration.workbench_address
else
- render_not_found "
Path not foun
d."
+ render_not_found "
Oops, this is an API endpoint. You probably want to point your browser to an Arvados Workbench site instea
d."
end
end
f.json do
end
end
f.json do
@@
-20,4
+20,8
@@
class StaticController < ApplicationController
end
end
end
end
+ def empty
+ render text: "-"
+ end
+
end
end