1 class StaticController < ApplicationController
2 respond_to :json, :html
4 skip_before_filter :find_object_by_uuid
5 skip_before_filter :render_404_if_no_object
6 skip_before_filter :require_auth_scope, :only => [ :home, :login_failure ]
9 if Rails.configuration.respond_to? :workbench_address
10 redirect_to Rails.configuration.workbench_address
13 error: ('This is the API server; you probably want to be at the workbench for this installation. Unfortunately, config.workbench_address is not set so I can not redirect you there automatically')