Initial
This commit is contained in:
0
strapi/src/api/.gitkeep
Normal file
0
strapi/src/api/.gitkeep
Normal file
40
strapi/src/api/contact/content-types/contact/schema.json
Normal file
40
strapi/src/api/contact/content-types/contact/schema.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "contacts",
|
||||
"info": {
|
||||
"singularName": "contact",
|
||||
"pluralName": "contacts",
|
||||
"displayName": "Contacts",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"firstName": {
|
||||
"type": "string"
|
||||
},
|
||||
"lastName": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "email"
|
||||
},
|
||||
"role": {
|
||||
"type": "string"
|
||||
},
|
||||
"customer": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::customer.customer",
|
||||
"inversedBy": "contacts"
|
||||
},
|
||||
"vendor": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::vendor.vendor",
|
||||
"inversedBy": "contacts"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/contact/controllers/contact.js
Normal file
9
strapi/src/api/contact/controllers/contact.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* contact controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::contact.contact');
|
||||
9
strapi/src/api/contact/routes/contact.js
Normal file
9
strapi/src/api/contact/routes/contact.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* contact router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::contact.contact');
|
||||
9
strapi/src/api/contact/services/contact.js
Normal file
9
strapi/src/api/contact/services/contact.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* contact service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::contact.contact');
|
||||
34
strapi/src/api/customer/content-types/customer/schema.json
Normal file
34
strapi/src/api/customer/content-types/customer/schema.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "customers",
|
||||
"info": {
|
||||
"singularName": "customer",
|
||||
"pluralName": "customers",
|
||||
"displayName": "Customers",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"contacts": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::contact.contact",
|
||||
"mappedBy": "customer"
|
||||
},
|
||||
"customerNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"projects": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::project.project",
|
||||
"mappedBy": "customer"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/customer/controllers/customer.js
Normal file
9
strapi/src/api/customer/controllers/customer.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* customer controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::customer.customer');
|
||||
9
strapi/src/api/customer/routes/customer.js
Normal file
9
strapi/src/api/customer/routes/customer.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* customer router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::customer.customer');
|
||||
9
strapi/src/api/customer/services/customer.js
Normal file
9
strapi/src/api/customer/services/customer.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* customer service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::customer.customer');
|
||||
44
strapi/src/api/document/content-types/document/schema.json
Normal file
44
strapi/src/api/document/content-types/document/schema.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "documents",
|
||||
"info": {
|
||||
"singularName": "document",
|
||||
"pluralName": "documents",
|
||||
"displayName": "Documents",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"project": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::project.project"
|
||||
},
|
||||
"tags": {
|
||||
"type": "json",
|
||||
"required": true
|
||||
},
|
||||
"state": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"default": "Eingang"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/document/controllers/document.js
Normal file
9
strapi/src/api/document/controllers/document.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* document controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::document.document');
|
||||
9
strapi/src/api/document/routes/document.js
Normal file
9
strapi/src/api/document/routes/document.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* document router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::document.document');
|
||||
9
strapi/src/api/document/services/document.js
Normal file
9
strapi/src/api/document/services/document.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* document service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::document.document');
|
||||
18
strapi/src/api/form/content-types/form/schema.json
Normal file
18
strapi/src/api/form/content-types/form/schema.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "forms",
|
||||
"info": {
|
||||
"singularName": "form",
|
||||
"pluralName": "forms",
|
||||
"displayName": "Forms"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"fields": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/form/controllers/form.js
Normal file
9
strapi/src/api/form/controllers/form.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* form controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::form.form');
|
||||
9
strapi/src/api/form/routes/form.js
Normal file
9
strapi/src/api/form/routes/form.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* form router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::form.form');
|
||||
9
strapi/src/api/form/services/form.js
Normal file
9
strapi/src/api/form/services/form.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* form service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::form.form');
|
||||
25
strapi/src/api/movement/content-types/movement/schema.json
Normal file
25
strapi/src/api/movement/content-types/movement/schema.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "movements",
|
||||
"info": {
|
||||
"singularName": "movement",
|
||||
"pluralName": "movements",
|
||||
"displayName": "Movements",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"productId": {
|
||||
"type": "string"
|
||||
},
|
||||
"spaceId": {
|
||||
"type": "string"
|
||||
},
|
||||
"quantity": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/movement/controllers/movement.js
Normal file
9
strapi/src/api/movement/controllers/movement.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* movement controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::movement.movement');
|
||||
9
strapi/src/api/movement/routes/movement.js
Normal file
9
strapi/src/api/movement/routes/movement.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* movement router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::movement.movement');
|
||||
9
strapi/src/api/movement/services/movement.js
Normal file
9
strapi/src/api/movement/services/movement.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* movement service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::movement.movement');
|
||||
56
strapi/src/api/product/content-types/product/schema.json
Normal file
56
strapi/src/api/product/content-types/product/schema.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "products",
|
||||
"info": {
|
||||
"singularName": "product",
|
||||
"pluralName": "products",
|
||||
"displayName": "Products",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"manufacturer": {
|
||||
"type": "string"
|
||||
},
|
||||
"purchasePriceNet": {
|
||||
"type": "decimal"
|
||||
},
|
||||
"profitPercentage": {
|
||||
"type": "decimal"
|
||||
},
|
||||
"retailPriceNet": {
|
||||
"type": "decimal"
|
||||
},
|
||||
"optionalProducts": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::product.product"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"unit": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "json"
|
||||
},
|
||||
"history": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/product/controllers/product.js
Normal file
9
strapi/src/api/product/controllers/product.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* product controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::product.product');
|
||||
9
strapi/src/api/product/routes/product.js
Normal file
9
strapi/src/api/product/routes/product.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* product router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::product.product');
|
||||
9
strapi/src/api/product/services/product.js
Normal file
9
strapi/src/api/product/services/product.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* product service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::product.product');
|
||||
31
strapi/src/api/project/content-types/project/schema.json
Normal file
31
strapi/src/api/project/content-types/project/schema.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "projects",
|
||||
"info": {
|
||||
"singularName": "project",
|
||||
"pluralName": "projects",
|
||||
"displayName": "Projects",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"notes": {
|
||||
"type": "text"
|
||||
},
|
||||
"customer": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::customer.customer",
|
||||
"inversedBy": "projects"
|
||||
},
|
||||
"phases": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/project/controllers/project.js
Normal file
9
strapi/src/api/project/controllers/project.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* project controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::project.project');
|
||||
9
strapi/src/api/project/routes/project.js
Normal file
9
strapi/src/api/project/routes/project.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* project router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::project.project');
|
||||
9
strapi/src/api/project/services/project.js
Normal file
9
strapi/src/api/project/services/project.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* project service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::project.project');
|
||||
26
strapi/src/api/space/content-types/space/schema.json
Normal file
26
strapi/src/api/space/content-types/space/schema.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "spaces",
|
||||
"info": {
|
||||
"singularName": "space",
|
||||
"pluralName": "spaces",
|
||||
"displayName": "Spaces",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"spaceNumber": {
|
||||
"type": "string",
|
||||
"unique": true
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/space/controllers/space.js
Normal file
9
strapi/src/api/space/controllers/space.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* space controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::space.space');
|
||||
9
strapi/src/api/space/routes/space.js
Normal file
9
strapi/src/api/space/routes/space.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* space router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::space.space');
|
||||
9
strapi/src/api/space/services/space.js
Normal file
9
strapi/src/api/space/services/space.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* space service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::space.space');
|
||||
28
strapi/src/api/task/content-types/task/schema.json
Normal file
28
strapi/src/api/task/content-types/task/schema.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "tasks",
|
||||
"info": {
|
||||
"singularName": "task",
|
||||
"pluralName": "tasks",
|
||||
"displayName": "Tasks",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"categorie": {
|
||||
"type": "string"
|
||||
},
|
||||
"users": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/task/controllers/task.js
Normal file
9
strapi/src/api/task/controllers/task.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* task controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::task.task');
|
||||
9
strapi/src/api/task/routes/task.js
Normal file
9
strapi/src/api/task/routes/task.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* task router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::task.task');
|
||||
9
strapi/src/api/task/services/task.js
Normal file
9
strapi/src/api/task/services/task.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* task service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::task.task');
|
||||
21
strapi/src/api/tenant/content-types/tenant/schema.json
Normal file
21
strapi/src/api/tenant/content-types/tenant/schema.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "tenants",
|
||||
"info": {
|
||||
"singularName": "tenant",
|
||||
"pluralName": "tenants",
|
||||
"displayName": "Tenants"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"short": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/tenant/controllers/tenant.js
Normal file
9
strapi/src/api/tenant/controllers/tenant.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* tenant controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::tenant.tenant');
|
||||
9
strapi/src/api/tenant/routes/tenant.js
Normal file
9
strapi/src/api/tenant/routes/tenant.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* tenant router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::tenant.tenant');
|
||||
9
strapi/src/api/tenant/services/tenant.js
Normal file
9
strapi/src/api/tenant/services/tenant.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* tenant service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::tenant.tenant');
|
||||
28
strapi/src/api/vendor/content-types/vendor/schema.json
vendored
Normal file
28
strapi/src/api/vendor/content-types/vendor/schema.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "vendors",
|
||||
"info": {
|
||||
"singularName": "vendor",
|
||||
"pluralName": "vendors",
|
||||
"displayName": "Vendors",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"vendorNumber": {
|
||||
"type": "string"
|
||||
},
|
||||
"contacts": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::contact.contact",
|
||||
"mappedBy": "vendor"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
strapi/src/api/vendor/controllers/vendor.js
vendored
Normal file
9
strapi/src/api/vendor/controllers/vendor.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* vendor controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::vendor.vendor');
|
||||
9
strapi/src/api/vendor/routes/vendor.js
vendored
Normal file
9
strapi/src/api/vendor/routes/vendor.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* vendor router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::vendor.vendor');
|
||||
9
strapi/src/api/vendor/services/vendor.js
vendored
Normal file
9
strapi/src/api/vendor/services/vendor.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* vendor service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::vendor.vendor');
|
||||
Reference in New Issue
Block a user