Module: Msf::WebServices::ModuleSearchServlet

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

Class Method Summary collapse

Class Method Details

.api_pathObject



4
5
6
# File 'lib/msf/core/web_services/servlet/module_search_servlet.rb', line 4

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

.registered(app) ⇒ Object



8
9
10
# File 'lib/msf/core/web_services/servlet/module_search_servlet.rb', line 8

def self.registered(app)
  app.get self.api_path, &search_modules
end