Skip to content

Commit

Permalink
feat: 🎸 Ajoute une nouvelle collection 'Config' (Strapi) (#1423)
Browse files Browse the repository at this point in the history
✅ Closes: #1399
  • Loading branch information
benguedj authored Sep 1, 2022
1 parent 9ee3782 commit 42c6942
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
28 changes: 28 additions & 0 deletions back/strapi/api/config/config/routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"routes": [
{
"method": "GET",
"path": "/config",
"handler": "config.find",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/config",
"handler": "config.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/config",
"handler": "config.delete",
"config": {
"policies": []
}
}
]
}
17 changes: 17 additions & 0 deletions back/strapi/api/config/models/config.settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"kind": "singleType",
"collectionName": "configs",
"info": {
"name": "config"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"minAppVersionNumber": {
"type": "string"
}
}
}

0 comments on commit 42c6942

Please sign in to comment.