Module: ModuleSearchServlet

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

Class Method Summary collapse

Class Method Details

.api_pathObject


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

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

.registered(app) ⇒ Object


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

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