Class: ThreeScale::Backend::Listener
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- ThreeScale::Backend::Listener
- Includes:
- Logging
- Defined in:
- lib/3scale/backend/listener.rb
Constant Summary collapse
- @@status =
using a class variable instead of settings because we want this to be as fast as possible when responding, since we hit /status a lot.
{ status: :ok, version: { backend: ThreeScale::Backend::VERSION } }.to_json.freeze
- @@not_found =
[404, { 'Content-Type' => 'application/vnd.3scale-v2.0+xml' }, ['']].freeze