add home page

This commit is contained in:
tmshv committed 2021-01-27 01:03:02 +03:00
1 parent 6f7648e15d
commit 6c122be1c7
6 files changed
+99

No files matched your search

@@ -0,0 +1,28 @@
{
"routes": [
{
"method": "GET",
"path": "/home",
"handler": "home.find",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/home",
"handler": "home.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/home",
"handler": "home.delete",
"config": {
"policies": []
}
}
]
}
@@ -0,0 +1,8 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
@@ -0,0 +1,8 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {};
@@ -0,0 +1,24 @@
{
"kind": "singleType",
"collectionName": "homes",
"info": {
"name": "Home",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": false
},
"attributes": {
"title": {
"type": "string"
},
"cards": {
"type": "dynamiczone",
"components": [
"hudozka.page-card"
]
}
}
}
@@ -0,0 +1,8 @@
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
@@ -0,0 +1,23 @@
{
"collectionName": "components_hudozka_page_cards",
"info": {
"name": "PageCard",
"icon": "award"
},
"options": {},
"attributes": {
"page": {
"model": "page"
},
"layout": {
"type": "enumeration",
"enum": [
"small",
"medium",
"big"
],
"default": "small",
"required": true
}
}
}