Class: Msf::WebServices::JsonRpcApp
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Msf::WebServices::JsonRpcApp
- Defined in:
- lib/msf/core/web_services/json_rpc_app.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.setup_default_middleware(builder) ⇒ Object
90 91 92 93 94 95 |
# File 'lib/msf/core/web_services/json_rpc_app.rb', line 90 def self.setup_default_middleware(builder) super # Insertion at pos 1 needed to immediately follow Sinatra::ExtendedBase # proc block identical to one used in 'use' method lib/rack/builder:86 builder.instance_variable_get(:@use).insert(1, proc { |app| JsonRpcExceptionHandling::RackMiddleware.new(app) }) end |
Instance Method Details
#db_initialized(db) ⇒ Object
83 84 85 86 87 88 |
# File 'lib/msf/core/web_services/json_rpc_app.rb', line 83 def db_initialized(db) db.check true rescue false end |