From 8d40ec16658d6d14d14c54f3f9e961b6da759b81 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Tue, 5 Apr 2022 12:36:32 -0500 Subject: [PATCH] just make cves controller render it all as json for now --- app/controllers/cves_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/cves_controller.rb b/app/controllers/cves_controller.rb index ef256fa..ab4c531 100644 --- a/app/controllers/cves_controller.rb +++ b/app/controllers/cves_controller.rb @@ -10,5 +10,6 @@ class CvesController < ApplicationController def show_year @cves_for_year = Cve.from_year(params[:year]) + render json: @cves_for_year.to_json end end