mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-13 19:10:42 +08:00
Add ProjectFolders relation to Folder serializer
This commit is contained in:
parent
e61679bcdd
commit
60a1e602e0
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
},
|
||||
"projects": {
|
||||
"type": "object"
|
||||
},
|
||||
"project_folders": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
|
Loading…
Reference in a new issue