EasyRecon/Hunt3r

View on GitHub
backend/app/views/vulnerabilities/index.json.jbuilder

Summary

Maintainability
Test Coverage
json.message nil
json.data do
  json.array! @vulnerabilities do |vulnerability|
    json.id vulnerability.id
    json.name vulnerability.name
    json.severity vulnerability.severity
    json.matched_at vulnerability.matched_at
    json.created_at vulnerability.created_at
  end
end
json.total_pages @vulnerabilities.total_pages == 0 ? 1 : @vulnerabilities.total_pages