Add ProjectFolders relation to Folder serializer

This commit is contained in:
Urban Rotnik 2021-01-12 17:09:39 +01:00
parent e61679bcdd
commit 60a1e602e0
2 changed files with 4 additions and 0 deletions

View file

@ -9,6 +9,7 @@ module Api
belongs_to :team, serializer: TeamSerializer
belongs_to :parent_folder, serializer: ProjectFolderSerializer
has_many :projects, serializer: ProjectSerializer
has_many :project_folders, serializer: ProjectFolderSerializer
end
end
end

View file

@ -31,6 +31,9 @@
},
"projects": {
"type": "object"
},
"project_folders": {
"type": "object"
}
},
"additionalProperties": false,