Skip to content

Commit

Permalink
feat(intentions): ajout de la table commentaires (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebret authored Jun 7, 2022
1 parent 6b7efcb commit 3b27a6e
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
52 changes: 52 additions & 0 deletions back/strapi/api/commentaires-epds/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/commentaires-epds",
"handler": "commentaires-epds.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/commentaires-epds/count",
"handler": "commentaires-epds.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/commentaires-epds/:id",
"handler": "commentaires-epds.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/commentaires-epds",
"handler": "commentaires-epds.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/commentaires-epds/:id",
"handler": "commentaires-epds.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/commentaires-epds/:id",
"handler": "commentaires-epds.delete",
"config": {
"policies": []
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"kind": "collectionType",
"collectionName": "commentaires_epds",
"info": {
"name": "Commentaires EPDS"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": false
},
"attributes": {
"score": {
"type": "integer"
},
"commentaire": {
"type": "text"
}
}
}

0 comments on commit 3b27a6e

Please sign in to comment.