Module: Msf::WebServices::JsonRpcServlet

Defined in:
lib/msf/core/web_services/servlet/json_rpc_servlet.rb

Class Method Summary collapse

Class Method Details

.api_pathObject


6
7
8
# File 'lib/msf/core/web_services/servlet/json_rpc_servlet.rb', line 6

def self.api_path
  '/api/:version/json-rpc'
end

.registered(app) ⇒ Object


10
11
12
# File 'lib/msf/core/web_services/servlet/json_rpc_servlet.rb', line 10

def self.registered(app)
  app.post JsonRpcServlet.api_path, &post_rpc
end