Class: Dradis::Plugins::JSON::ReportsController

Inherits:
Export::BaseController
  • Object
show all
Defined in:
app/controllers/dradis/plugins/json/reports_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



7
8
9
10
11
12
# File 'app/controllers/dradis/plugins/json/reports_controller.rb', line 7

def create
  exporter = Dradis::Plugins::JSON::Exporter.new(export_params)
  json = exporter.export

  render json: json
end