summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/cve/info.json.jbuilder')
-rw-r--r--app/views/cve/info.json.jbuilder5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/cve/info.json.jbuilder b/app/views/cve/info.json.jbuilder
new file mode 100644
index 0000000..31408a0
--- /dev/null
+++ b/app/views/cve/info.json.jbuilder
@@ -0,0 +1,5 @@
+json.extract! @cve, :id, :cve_id, :summary, :cvss, :state, :published_at
+
+json.references @cve.references, :source, :title, :uri
+
+json.bugs @cve.assignments.map { |a| a.bug }