Przeglądaj źródła

yarn build

master
Yusmardianto 4 lat temu
rodzic
commit
ac08cd420d
5 zmienionych plików z 0 dodań i 104 usunięć
  1. +0
    -52
      api/company/config/routes.json
  2. +0
    -8
      api/company/controllers/company.js
  3. +0
    -8
      api/company/models/company.js
  4. +0
    -28
      api/company/models/company.settings.json
  5. +0
    -8
      api/company/services/company.js

+ 0
- 52
api/company/config/routes.json Wyświetl plik

@@ -1,52 +0,0 @@
{
"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": []
}
}
]
}

+ 0
- 8
api/company/controllers/company.js Wyświetl plik

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

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

module.exports = {};

+ 0
- 8
api/company/models/company.js Wyświetl plik

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

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

module.exports = {};

+ 0
- 28
api/company/models/company.settings.json Wyświetl plik

@@ -1,28 +0,0 @@
{
"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
}
}
}

+ 0
- 8
api/company/services/company.js Wyświetl plik

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

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

module.exports = {};

Ładowanie…
Anuluj
Zapisz