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