2019-06-06 16:34:53 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-04-22 18:17:55 +02:00
|
|
|
json.projects @projects do |project|
|
2023-01-19 10:29:23 +01:00
|
|
|
json.extract! project, :id, :name, :licence_id, :slug, :state, :status
|
2022-07-27 15:59:42 +02:00
|
|
|
json.description sanitize(project.description)
|
2019-06-06 16:34:53 +02:00
|
|
|
json.author_id project.author.user_id
|
2020-06-22 16:28:05 +02:00
|
|
|
|
2015-05-05 03:10:25 +02:00
|
|
|
json.project_image project.project_image.attachment.medium.url if project.project_image
|
|
|
|
json.user_ids project.user_ids
|
2016-04-22 18:17:55 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
json.meta do
|
|
|
|
json.total @total if @total
|
2015-05-05 03:10:25 +02:00
|
|
|
end
|