module-and-template-store/app/views/templates/index.json.jbuilder

5 lines
138 B
Ruby

json.array!(@templates) do |template|
json.extract! template, :id, :title, :author
json.url template_url(template, format: :json)
end