diff --git a/src/api/projeto/content-types/projeto/schema.json b/src/api/projeto/content-types/projeto/schema.json new file mode 100644 index 0000000000000000000000000000000000000000..3f8cc1c8d67f1a7b4c52f3357bc42d784337ee56 --- /dev/null +++ b/src/api/projeto/content-types/projeto/schema.json @@ -0,0 +1,27 @@ +{ + "kind": "collectionType", + "collectionName": "projetos", + "info": { + "singularName": "projeto", + "pluralName": "projetos", + "displayName": " Projeto" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "Titulo": { + "type": "string" + }, + "Status": { + "type": "string" + }, + "Parceiro": { + "type": "string" + }, + "Descricao": { + "type": "richtext" + } + } +} diff --git a/src/api/projeto/controllers/projeto.js b/src/api/projeto/controllers/projeto.js new file mode 100644 index 0000000000000000000000000000000000000000..c73f1c6a2c6c54aa6049512d7f2ea3a9dd66ec36 --- /dev/null +++ b/src/api/projeto/controllers/projeto.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * projeto controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::projeto.projeto'); diff --git a/src/api/projeto/routes/projeto.js b/src/api/projeto/routes/projeto.js new file mode 100644 index 0000000000000000000000000000000000000000..9328922a0a949691528634a906d4d692835b3c43 --- /dev/null +++ b/src/api/projeto/routes/projeto.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * projeto router + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::projeto.projeto'); diff --git a/src/api/projeto/services/projeto.js b/src/api/projeto/services/projeto.js new file mode 100644 index 0000000000000000000000000000000000000000..d27b9f062f5d43d0cd5fcb78fb7bf5efdc9faf18 --- /dev/null +++ b/src/api/projeto/services/projeto.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * projeto service + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::projeto.projeto');