13 lines
293 B
Ruby
13 lines
293 B
Ruby
# frozen_string_literal: true
|
|
|
|
class InthewildCveExploitsController < ApplicationController
|
|
def index
|
|
@cves = InthewildCveExploit.all
|
|
render json: @cves.to_json
|
|
end
|
|
|
|
def show
|
|
@cve = InthewildCveExploit.find_by(cve_id: params[:cve_id])
|
|
render json: @cve.to_json
|
|
end
|
|
end
|