Skip to content

Commit

Permalink
Merge pull request #2398 from betagouv/feat/cms_add_resource_fields
Browse files Browse the repository at this point in the history
add fields to resources
  • Loading branch information
P3rceval authored Feb 5, 2024
2 parents 59b0cdd + ef6a07b commit f980d7e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cms/src/api/resource/content-types/resource/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@
"relation": "manyToMany",
"target": "api::categorie.categorie",
"mappedBy": "resources"
},
"img": {
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false,
"required": true
},
"link": {
"type": "string"
},
"file": {
"allowedTypes": [
"files"
],
"type": "media",
"multiple": false
}
}
}

0 comments on commit f980d7e

Please sign in to comment.