Sha256: 7c5646d24f794a1a5f5c57e24c3e89b6beef2194e4977f7aaf708677b2fa820d
Contents?: true
Size: 978 Bytes
Versions: 1
Compression:
Stored size: 978 Bytes
Contents
module ZuoraConnect class StaticController < ApplicationController before_filter :authenticate_connect_app_request, :except => [:health, :session_error, :invalid_app_instance_error] after_filter :persist_connect_app_session, :except => [:health, :session_error, :invalid_app_instance_error] def session_error respond_to do |format| format.html format.json { render json: { message: "Session Error", status: 500 }, status: 500 } end end def invalid_app_instance_error respond_to do |format| format.html format.json {render json: { message: "Invalid App Instance", status: 500 }, status: 500 } end end def metrics type = params[:type].present? ? params[:type] : "versions" render json: ZuoraConnect::AppInstanceBase.get_metrics(type), status: 200 end def health render json: { message: "Alive", status: 200 }, status: 200 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zuora_connect-1.5.40r | app/controllers/zuora_connect/static_controller.rb |