Bläddra i källkod

commit

master
Yusmardianto 4 år sedan
förälder
incheckning
102c1b2484
12 ändrade filer med 213 tillägg och 0 borttagningar
  1. +4
    -0
      api/business-partner/models/business-partner.settings.json
  2. +52
    -0
      api/carousel/config/routes.json
  3. +8
    -0
      api/carousel/controllers/carousel.js
  4. +8
    -0
      api/carousel/models/carousel.js
  5. +25
    -0
      api/carousel/models/carousel.settings.json
  6. +8
    -0
      api/carousel/services/carousel.js
  7. +52
    -0
      api/company/config/routes.json
  8. +8
    -0
      api/company/controllers/company.js
  9. +8
    -0
      api/company/models/company.js
  10. +28
    -0
      api/company/models/company.settings.json
  11. +8
    -0
      api/company/services/company.js
  12. +4
    -0
      api/product/models/product.settings.json

+ 4
- 0
api/business-partner/models/business-partner.settings.json Visa fil

@@ -29,6 +29,10 @@
],
"plugin": "upload",
"required": false
},
"products": {
"collection": "product",
"via": "business_partner"
}
}
}

+ 52
- 0
api/carousel/config/routes.json Visa fil

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/carousels",
"handler": "carousel.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/carousels/count",
"handler": "carousel.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/carousels/:id",
"handler": "carousel.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/carousels",
"handler": "carousel.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/carousels/:id",
"handler": "carousel.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/carousels/:id",
"handler": "carousel.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/carousel/controllers/carousel.js Visa fil

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers)
* to customize this controller
*/

module.exports = {};

+ 8
- 0
api/carousel/models/carousel.js Visa fil

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};

+ 25
- 0
api/carousel/models/carousel.settings.json Visa fil

@@ -0,0 +1,25 @@
{
"kind": "collectionType",
"collectionName": "carousels",
"info": {
"name": "Carousel"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"img": {
"collection": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false
}
}
}

+ 8
- 0
api/carousel/services/carousel.js Visa fil

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
* to customize this service
*/

module.exports = {};

+ 52
- 0
api/company/config/routes.json Visa fil

@@ -0,0 +1,52 @@
{
"routes": [
{
"method": "GET",
"path": "/companies",
"handler": "company.find",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/companies/count",
"handler": "company.count",
"config": {
"policies": []
}
},
{
"method": "GET",
"path": "/companies/:id",
"handler": "company.findOne",
"config": {
"policies": []
}
},
{
"method": "POST",
"path": "/companies",
"handler": "company.create",
"config": {
"policies": []
}
},
{
"method": "PUT",
"path": "/companies/:id",
"handler": "company.update",
"config": {
"policies": []
}
},
{
"method": "DELETE",
"path": "/companies/:id",
"handler": "company.delete",
"config": {
"policies": []
}
}
]
}

+ 8
- 0
api/company/controllers/company.js Visa fil

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/controllers.html#core-controllers)
* to customize this controller
*/

module.exports = {};

+ 8
- 0
api/company/models/company.js Visa fil

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks)
* to customize this model
*/

module.exports = {};

+ 28
- 0
api/company/models/company.settings.json Visa fil

@@ -0,0 +1,28 @@
{
"kind": "collectionType",
"collectionName": "companies",
"info": {
"name": "Company"
},
"options": {
"increments": true,
"timestamps": true,
"draftAndPublish": true
},
"attributes": {
"name": {
"type": "string"
},
"img": {
"model": "file",
"via": "related",
"allowedTypes": [
"images",
"files",
"videos"
],
"plugin": "upload",
"required": false
}
}
}

+ 8
- 0
api/company/services/company.js Visa fil

@@ -0,0 +1,8 @@
'use strict';

/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/concepts/services.html#core-services)
* to customize this service
*/

module.exports = {};

+ 4
- 0
api/product/models/product.settings.json Visa fil

@@ -52,6 +52,10 @@
],
"plugin": "upload",
"required": false
},
"business_partner": {
"via": "products",
"model": "business-partner"
}
}
}

Laddar…
Avbryt
Spara