mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add problem type
This commit is contained in:
4
app/views/problems/index.json.jbuilder
Normal file
4
app/views/problems/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.array!(@problems) do |problem|
|
||||
json.extract! problem, :id, :title, :content
|
||||
json.url problem_url(problem, format: :json)
|
||||
end
|
||||
Reference in New Issue
Block a user