data_importer/app/controllers/inthewild_cve_exploits_controller.rb

10 lines
230 B
Ruby

class InthewildCveExploitsController < ApplicationController
def index
@cves = InthewildCveExploit.all
end
def show
@cve = InthewildCveExploit.find_by(:id => params[:cve_id])
render json: @poc.to_json
end
end