13 lines
333 B
Ruby
13 lines
333 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CisaKnownExploitsController < ApplicationController
|
|
def index
|
|
@cisa_known_exploits = CisaKnownExploit.all
|
|
render json: @cisa_known_exploits.to_json
|
|
end
|
|
|
|
def show
|
|
@cisa_known_exploit = CisaKnownExploit.find(params[:cve_id])
|
|
render json: @cisa_known_exploit.to_json
|
|
end
|
|
end
|