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



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

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

.registered(app) ⇒ Object



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

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