refactoring , dockerizing
This commit is contained in:
38
yoga-cms/src/api/car/content-types/car/schema.json
Normal file
38
yoga-cms/src/api/car/content-types/car/schema.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "cars",
|
||||
"info": {
|
||||
"singularName": "car",
|
||||
"pluralName": "cars",
|
||||
"displayName": "car",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"myquote": {
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "shared.quote"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/car/controllers/car.ts
Normal file
7
yoga-cms/src/api/car/controllers/car.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* car controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::car.car');
|
||||
7
yoga-cms/src/api/car/routes/car.ts
Normal file
7
yoga-cms/src/api/car/routes/car.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* car router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::car.car');
|
||||
7
yoga-cms/src/api/car/services/car.ts
Normal file
7
yoga-cms/src/api/car/services/car.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* car service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::car.car');
|
||||
Reference in New Issue
Block a user