Updated Brand schema.
This commit is contained in:
parent
ce0cea0965
commit
5e367e314d
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"kind": "singleType",
|
"kind": "collectionType",
|
||||||
"collectionName": "brands",
|
"collectionName": "brands",
|
||||||
"info": {
|
"info": {
|
||||||
"singularName": "brand",
|
"singularName": "brand",
|
||||||
|
|
@ -11,33 +11,30 @@
|
||||||
},
|
},
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"localized": false
|
"localized": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"attributes": {
|
"attributes": {
|
||||||
"name": {
|
"name": {
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"localized": false
|
"localized": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"required": true,
|
|
||||||
"unique": true
|
|
||||||
},
|
},
|
||||||
"slug": {
|
"slug": {
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"localized": false
|
"localized": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "string",
|
"type": "string"
|
||||||
"unique": true
|
|
||||||
},
|
},
|
||||||
"shortDescription": {
|
"shortDescription": {
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"localized": false
|
"localized": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "blocks"
|
"type": "blocks"
|
||||||
|
|
@ -45,7 +42,7 @@
|
||||||
"description": {
|
"description": {
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"i18n": {
|
||||||
"localized": false
|
"localized": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "blocks"
|
"type": "blocks"
|
||||||
|
|
@ -58,7 +55,7 @@
|
||||||
"multiple": false,
|
"multiple": false,
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
"i18n": {
|
"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