Commit 1671cede authored by alain's avatar alain 🐙
Browse files

more cms changes

parent e65dcebf
{
"routes": [
{
"method": "GET",
"path": "/articles",
"handler": "article.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/articles/count",
"handler": "article.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/articles/:id",
"handler": "article.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/articles",
"handler": "article.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/articles/:id",
"handler": "article.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/articles/:id",
"handler": "article.delete",
"config": {
"policies": []
}
}
]
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {
lifecycles: {
async afterUpdate() {
if(process.env.NODE_ENV === 'production') {
strapi.services.util.build()
}
},
},
};
{
"kind": "collectionType",
"collectionName": "articles",
"info": {
"name": "Article",
"description": ""
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"title": {
"type": "string"
},
"body": {
"type": "richtext"
},
"slug": {
"type": "string",
"regex": "^[a-z0-9-_.~]*$"
},
"excerpt": {
"type": "richtext"
},
"tag": {
"type": "enumeration",
"enum": [
"blueprint",
"network",
"programme"
]
}
}
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
{
"routes": [
{
"method": "GET",
"path": "/deps-page",
"handler": "deps-page.find",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/deps-page",
"handler": "deps-page.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/deps-page",
"handler": "deps-page.delete",
"config": {
"policies": []
}
}
]
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers)
* to customize this controller
*/
module.exports = {};
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks)
* to customize this model
*/
module.exports = {
lifecycles: {
async afterUpdate() {
if(process.env.NODE_ENV === 'production') {
strapi.services.util.build()
}
},
},
};
{
"kind": "singleType",
"collectionName": "deps_pages",
"info": {
"name": "DEPS Page"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"subtitle": {
"type": "string"
},
"introduction": {
"type": "richtext"
}
}
}
'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
* to customize this service
*/
module.exports = {};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment