Module: Msf::WebServices::LoginServlet
- Defined in:
- lib/msf/core/web_services/servlet/login_servlet.rb
Class Method Summary collapse
Class Method Details
.api_path ⇒ Object
3 4 5 |
# File 'lib/msf/core/web_services/servlet/login_servlet.rb', line 3 def self.api_path '/api/v1/logins' end |
.api_path_with_id ⇒ Object
7 8 9 |
# File 'lib/msf/core/web_services/servlet/login_servlet.rb', line 7 def self.api_path_with_id "#{self.api_path}/?:id?" end |
.registered(app) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/msf/core/web_services/servlet/login_servlet.rb', line 11 def self.registered(app) app.get self.api_path, &get_logins app.get self.api_path_with_id, &get_logins app.post self.api_path, &create_login app.put self.api_path_with_id, &update_login app.delete self.api_path, &delete_logins end |