require_dependency "app_manager/application_controller" module AppManager class BannersController < ApplicationController def marketing_banner begin banner_obj = AppManager::Client.new render json: banner_obj.get_banners rescue Exception => e @fs = AppManager::FailSafe.new render json: @fs.get_local_app_structures end end end end