# 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