Updated Brand schema.
This commit is contained in:
parent
ce0cea0965
commit
5e367e314d
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"kind": "singleType",
|
||||
"kind": "collectionType",
|
||||
"collectionName": "brands",
|
||||
"info": {
|
||||
"singularName": "brand",
|
||||
|
|
@ -11,33 +11,30 @@
|
|||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true
|
||||
"type": "string"
|
||||
},
|
||||
"slug": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"type": "string",
|
||||
"unique": true
|
||||
"type": "string"
|
||||
},
|
||||
"shortDescription": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"type": "blocks"
|
||||
|
|
@ -45,7 +42,7 @@
|
|||
"description": {
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"type": "blocks"
|
||||
|
|
@ -58,7 +55,7 @@
|
|||
"multiple": false,
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": false
|
||||
"localized": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
7
src/api/brand/controllers/brand.ts
Normal file
7
src/api/brand/controllers/brand.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* brand controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::brand.brand');
|
||||
7
src/api/brand/routes/brand.ts
Normal file
7
src/api/brand/routes/brand.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* brand router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::brand.brand');
|
||||
7
src/api/brand/services/brand.ts
Normal file
7
src/api/brand/services/brand.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/**
|
||||
* brand service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::brand.brand');
|
||||
Loading…
Reference in New Issue
Block a user