Module: Msf::WebServices::RouteServlet

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

Class Method Summary collapse

Class Method Details

.api_pathObject


3
4
5
# File 'lib/msf/core/web_services/servlet/route_servlet.rb', line 3

def self.api_path
  '/api/v1/routes'
end

.api_path_removeObject


7
8
9
# File 'lib/msf/core/web_services/servlet/route_servlet.rb', line 7

def self.api_path_remove
  "#{self.api_path}/remove"
end

.registered(app) ⇒ Object


11
12
13
14
# File 'lib/msf/core/web_services/servlet/route_servlet.rb', line 11

def self.registered(app)
  app.post self.api_path, &report_session_route
  app.post self.api_path_remove, &report_session_route_remove
end