data_importer/app/controllers/inthewild_cve_exploits_controller.rb

14 lines
293 B
Ruby
Raw Normal View History

2022-04-19 02:37:27 -05:00
# frozen_string_literal: true
class InthewildCveExploitsController < ApplicationController
def index
@cves = InthewildCveExploit.all
render json: @cves.to_json
end
def show
2022-04-19 02:37:27 -05:00
@cve = InthewildCveExploit.find_by(cve_id: params[:cve_id])
render json: @cve.to_json
end
end