0.13.1 : add legal pages
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "legal_pages",
|
||||
"info": {
|
||||
"singularName": "legal-page",
|
||||
"pluralName": "legal-pages",
|
||||
"displayName": "LegalPage"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"slug": {
|
||||
"type": "uid",
|
||||
"targetField": "title"
|
||||
},
|
||||
"content": {
|
||||
"type": "blocks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* legal-page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::legal-page.legal-page');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* legal-page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::legal-page.legal-page');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* legal-page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::legal-page.legal-page');
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user