1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00
projekteuler/app/views/problems/index.json.jbuilder

5 lines
134 B
Ruby

json.array!(@problems) do |problem|
json.extract! problem, :id, :title, :content
json.url problem_url(problem, format: :json)
end