| @@ -0,0 +1,16 @@ | |||||
| root = true | |||||
| [*] | |||||
| indent_style = space | |||||
| indent_size = 2 | |||||
| end_of_line = lf | |||||
| charset = utf-8 | |||||
| trim_trailing_whitespace = true | |||||
| insert_final_newline = true | |||||
| [{package.json,*.yml}] | |||||
| indent_style = space | |||||
| indent_size = 2 | |||||
| [*.md] | |||||
| trim_trailing_whitespace = false | |||||
| @@ -0,0 +1,2 @@ | |||||
| HOST=0.0.0.0 | |||||
| PORT=1337 | |||||
| @@ -0,0 +1,3 @@ | |||||
| .cache | |||||
| build | |||||
| **/node_modules/** | |||||
| @@ -0,0 +1,27 @@ | |||||
| { | |||||
| "parser": "babel-eslint", | |||||
| "extends": "eslint:recommended", | |||||
| "env": { | |||||
| "commonjs": true, | |||||
| "es6": true, | |||||
| "node": true, | |||||
| "browser": false | |||||
| }, | |||||
| "parserOptions": { | |||||
| "ecmaFeatures": { | |||||
| "experimentalObjectRestSpread": true, | |||||
| "jsx": false | |||||
| }, | |||||
| "sourceType": "module" | |||||
| }, | |||||
| "globals": { | |||||
| "strapi": true | |||||
| }, | |||||
| "rules": { | |||||
| "indent": ["error", 2, { "SwitchCase": 1 }], | |||||
| "linebreak-style": ["error", "unix"], | |||||
| "no-console": 0, | |||||
| "quotes": ["error", "single"], | |||||
| "semi": ["error", "always"] | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,114 @@ | |||||
| ############################ | |||||
| # OS X | |||||
| ############################ | |||||
| .DS_Store | |||||
| .AppleDouble | |||||
| .LSOverride | |||||
| Icon | |||||
| .Spotlight-V100 | |||||
| .Trashes | |||||
| ._* | |||||
| ############################ | |||||
| # Linux | |||||
| ############################ | |||||
| *~ | |||||
| ############################ | |||||
| # Windows | |||||
| ############################ | |||||
| Thumbs.db | |||||
| ehthumbs.db | |||||
| Desktop.ini | |||||
| $RECYCLE.BIN/ | |||||
| *.cab | |||||
| *.msi | |||||
| *.msm | |||||
| *.msp | |||||
| ############################ | |||||
| # Packages | |||||
| ############################ | |||||
| *.7z | |||||
| *.csv | |||||
| *.dat | |||||
| *.dmg | |||||
| *.gz | |||||
| *.iso | |||||
| *.jar | |||||
| *.rar | |||||
| *.tar | |||||
| *.zip | |||||
| *.com | |||||
| *.class | |||||
| *.dll | |||||
| *.exe | |||||
| *.o | |||||
| *.seed | |||||
| *.so | |||||
| *.swo | |||||
| *.swp | |||||
| *.swn | |||||
| *.swm | |||||
| *.out | |||||
| *.pid | |||||
| ############################ | |||||
| # Logs and databases | |||||
| ############################ | |||||
| .tmp | |||||
| *.log | |||||
| *.sql | |||||
| *.sqlite | |||||
| *.sqlite3 | |||||
| ############################ | |||||
| # Misc. | |||||
| ############################ | |||||
| *# | |||||
| ssl | |||||
| .idea | |||||
| nbproject | |||||
| public/uploads/* | |||||
| !public/uploads/.gitkeep | |||||
| ############################ | |||||
| # Node.js | |||||
| ############################ | |||||
| lib-cov | |||||
| lcov.info | |||||
| pids | |||||
| logs | |||||
| results | |||||
| node_modules | |||||
| .node_history | |||||
| ############################ | |||||
| # Tests | |||||
| ############################ | |||||
| testApp | |||||
| coverage | |||||
| ############################ | |||||
| # Strapi | |||||
| ############################ | |||||
| .env | |||||
| license.txt | |||||
| exports | |||||
| *.cache | |||||
| build | |||||
| .strapi-updater.json | |||||
| @@ -0,0 +1,3 @@ | |||||
| # Strapi application | |||||
| A quick description of your strapi application | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/business-partners", | |||||
| "handler": "business-partner.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/business-partners/count", | |||||
| "handler": "business-partner.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/business-partners/:id", | |||||
| "handler": "business-partner.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/business-partners", | |||||
| "handler": "business-partner.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/business-partners/:id", | |||||
| "handler": "business-partner.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/business-partners/:id", | |||||
| "handler": "business-partner.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,34 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "business_partners", | |||||
| "info": { | |||||
| "name": "Business Partner", | |||||
| "description": "" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string", | |||||
| "required": true, | |||||
| "unique": true | |||||
| }, | |||||
| "Description": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "img": { | |||||
| "collection": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/carrers", | |||||
| "handler": "carrer.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/carrers/count", | |||||
| "handler": "carrer.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/carrers/:id", | |||||
| "handler": "carrer.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/carrers", | |||||
| "handler": "carrer.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/carrers/:id", | |||||
| "handler": "carrer.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/carrers/:id", | |||||
| "handler": "carrer.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,37 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "carrers", | |||||
| "info": { | |||||
| "name": "Carrer" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string", | |||||
| "unique": false, | |||||
| "required": true | |||||
| }, | |||||
| "description": { | |||||
| "type": "richtext", | |||||
| "required": true | |||||
| }, | |||||
| "img": { | |||||
| "collection": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": true | |||||
| }, | |||||
| "category": { | |||||
| "type": "string" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/categories", | |||||
| "handler": "category.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/categories/count", | |||||
| "handler": "category.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/categories/:id", | |||||
| "handler": "category.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/categories", | |||||
| "handler": "category.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/categories/:id", | |||||
| "handler": "category.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/categories/:id", | |||||
| "handler": "category.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,24 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "categories", | |||||
| "info": { | |||||
| "name": "category" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string", | |||||
| "required": true, | |||||
| "unique": true | |||||
| }, | |||||
| "restaurants": { | |||||
| "collection": "restaurant", | |||||
| "via": "categories", | |||||
| "dominant": true | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/latest-news", | |||||
| "handler": "latest-news.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/latest-news/count", | |||||
| "handler": "latest-news.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/latest-news/:id", | |||||
| "handler": "latest-news.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/latest-news", | |||||
| "handler": "latest-news.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/latest-news/:id", | |||||
| "handler": "latest-news.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/latest-news/:id", | |||||
| "handler": "latest-news.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,34 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "latest_news", | |||||
| "info": { | |||||
| "name": "Latest News" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "title": { | |||||
| "type": "string", | |||||
| "required": true, | |||||
| "unique": true | |||||
| }, | |||||
| "description": { | |||||
| "type": "richtext", | |||||
| "required": true | |||||
| }, | |||||
| "img": { | |||||
| "collection": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "files", | |||||
| "images", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": true | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/products", | |||||
| "handler": "product.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/products/count", | |||||
| "handler": "product.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/products/:id", | |||||
| "handler": "product.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/products", | |||||
| "handler": "product.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/products/:id", | |||||
| "handler": "product.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/products/:id", | |||||
| "handler": "product.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,57 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "products", | |||||
| "info": { | |||||
| "name": "Product", | |||||
| "description": "" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string", | |||||
| "required": true, | |||||
| "unique": true | |||||
| }, | |||||
| "description": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "img": { | |||||
| "collection": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "files", | |||||
| "images", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": true | |||||
| }, | |||||
| "price": { | |||||
| "type": "biginteger" | |||||
| }, | |||||
| "overview": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "specification": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "accessories": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "film": { | |||||
| "collection": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/restaurants", | |||||
| "handler": "restaurant.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/restaurants/count", | |||||
| "handler": "restaurant.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/restaurants/:id", | |||||
| "handler": "restaurant.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/restaurants", | |||||
| "handler": "restaurant.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/restaurants/:id", | |||||
| "handler": "restaurant.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/restaurants/:id", | |||||
| "handler": "restaurant.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,26 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "restaurants", | |||||
| "info": { | |||||
| "name": "restaurant" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string", | |||||
| "required": true, | |||||
| "unique": true | |||||
| }, | |||||
| "description": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "categories": { | |||||
| "via": "restaurants", | |||||
| "collection": "category" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/services", | |||||
| "handler": "service.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/services/count", | |||||
| "handler": "service.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/services/:id", | |||||
| "handler": "service.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/services", | |||||
| "handler": "service.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/services/:id", | |||||
| "handler": "service.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/services/:id", | |||||
| "handler": "service.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,32 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "services", | |||||
| "info": { | |||||
| "name": "Service", | |||||
| "description": "" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "name": { | |||||
| "type": "string" | |||||
| }, | |||||
| "Description": { | |||||
| "type": "richtext" | |||||
| }, | |||||
| "img": { | |||||
| "collection": "file", | |||||
| "via": "related", | |||||
| "allowedTypes": [ | |||||
| "images", | |||||
| "files", | |||||
| "videos" | |||||
| ], | |||||
| "plugin": "upload", | |||||
| "required": false | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -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 = {}; | |||||
| @@ -0,0 +1,15 @@ | |||||
| module.exports = ({ env }) => ({ | |||||
| defaultConnection: 'default', | |||||
| connections: { | |||||
| default: { | |||||
| connector: 'bookshelf', | |||||
| settings: { | |||||
| client: 'sqlite', | |||||
| filename: env('DATABASE_FILENAME', '.tmp/data.db'), | |||||
| }, | |||||
| options: { | |||||
| useNullAsDefault: true, | |||||
| }, | |||||
| }, | |||||
| }, | |||||
| }); | |||||
| @@ -0,0 +1,13 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * An asynchronous bootstrap function that runs before | |||||
| * your application gets started. | |||||
| * | |||||
| * This gives you an opportunity to set up your data model, | |||||
| * run jobs, or perform some special logic. | |||||
| * | |||||
| * See more details here: https://strapi.io/documentation/developer-docs/latest/concepts/configurations.html#bootstrap | |||||
| */ | |||||
| module.exports = () => {}; | |||||
| @@ -0,0 +1,21 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Cron config that gives you an opportunity | |||||
| * to run scheduled jobs. | |||||
| * | |||||
| * The cron format consists of: | |||||
| * [SECOND (optional)] [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK] | |||||
| * | |||||
| * See more details here: https://strapi.io/documentation/developer-docs/latest/concepts/configurations.html#cron-tasks | |||||
| */ | |||||
| module.exports = { | |||||
| /** | |||||
| * Simple example. | |||||
| * Every monday at 1am. | |||||
| */ | |||||
| // '0 1 * * 1': () => { | |||||
| // | |||||
| // } | |||||
| }; | |||||
| @@ -0,0 +1,5 @@ | |||||
| 'use strict'; | |||||
| module.exports = async (/* ctx */) => { | |||||
| // return ctx.notFound('My custom message 404'); | |||||
| }; | |||||
| @@ -0,0 +1,9 @@ | |||||
| module.exports = ({ env }) => ({ | |||||
| host: env('HOST', '0.0.0.0'), | |||||
| port: env.int('PORT', 1337), | |||||
| admin: { | |||||
| auth: { | |||||
| secret: env('ADMIN_JWT_SECRET', '8b68f81f57774b61603c6656e68f38fa'), | |||||
| }, | |||||
| }, | |||||
| }); | |||||
| @@ -0,0 +1,3 @@ | |||||
| module.exports = { | |||||
| jwtSecret: process.env.JWT_SECRET || 'a5700a1a-2cb5-45ed-80a9-99e77afa5311' | |||||
| }; | |||||
| @@ -0,0 +1,38 @@ | |||||
| { | |||||
| "name": "tbg-company-api", | |||||
| "private": true, | |||||
| "version": "0.1.0", | |||||
| "description": "A Strapi application", | |||||
| "scripts": { | |||||
| "develop": "strapi develop", | |||||
| "start": "strapi start", | |||||
| "build": "strapi build", | |||||
| "strapi": "strapi" | |||||
| }, | |||||
| "devDependencies": {}, | |||||
| "dependencies": { | |||||
| "knex": "<0.20.0", | |||||
| "sqlite3": "5.0.0", | |||||
| "strapi": "3.4.6", | |||||
| "strapi-admin": "3.4.6", | |||||
| "strapi-connector-bookshelf": "3.4.6", | |||||
| "strapi-plugin-content-manager": "3.4.6", | |||||
| "strapi-plugin-content-type-builder": "3.4.6", | |||||
| "strapi-plugin-email": "3.4.6", | |||||
| "strapi-plugin-graphql": "3.4.6", | |||||
| "strapi-plugin-upload": "3.4.6", | |||||
| "strapi-plugin-users-permissions": "3.4.6", | |||||
| "strapi-utils": "3.4.6" | |||||
| }, | |||||
| "author": { | |||||
| "name": "A Strapi developer" | |||||
| }, | |||||
| "strapi": { | |||||
| "uuid": "9bc5e63a-1de4-48f2-919a-bc487e6e2d09" | |||||
| }, | |||||
| "engines": { | |||||
| "node": ">=10.16.0 <=14.x.x", | |||||
| "npm": ">=6.0.0" | |||||
| }, | |||||
| "license": "MIT" | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| # To prevent search engines from seeing the site altogether, uncomment the next two lines: | |||||
| # User-Agent: * | |||||
| # Disallow: / | |||||