diff --git a/back/database/migrations/development.db b/back/database/migrations/development.db index 3d18527..1445199 100644 Binary files a/back/database/migrations/development.db and b/back/database/migrations/development.db differ diff --git a/back/src/api/hasiera/content-types/hasiera/schema.json b/back/src/api/hasiera/content-types/hasiera/schema.json new file mode 100644 index 0000000..310dfad --- /dev/null +++ b/back/src/api/hasiera/content-types/hasiera/schema.json @@ -0,0 +1,27 @@ +{ + "kind": "singleType", + "collectionName": "hasierak", + "info": { + "singularName": "hasiera", + "pluralName": "hasierak", + "displayName": "Hasiera", + "description": "" + }, + "options": { + "draftAndPublish": true + }, + "pluginOptions": {}, + "attributes": { + "deskribapena": { + "type": "text" + }, + "izenburua": { + "type": "string" + }, + "Helbidea": { + "type": "component", + "repeatable": false, + "component": "orokorra.helbidea" + } + } +} diff --git a/back/src/api/hasiera/controllers/hasiera.js b/back/src/api/hasiera/controllers/hasiera.js new file mode 100644 index 0000000..6efc48b --- /dev/null +++ b/back/src/api/hasiera/controllers/hasiera.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * hasiera controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::hasiera.hasiera'); diff --git a/back/src/api/hasiera/routes/hasiera.js b/back/src/api/hasiera/routes/hasiera.js new file mode 100644 index 0000000..f1ab3ec --- /dev/null +++ b/back/src/api/hasiera/routes/hasiera.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * hasiera router. + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::hasiera.hasiera'); diff --git a/back/src/api/hasiera/services/hasiera.js b/back/src/api/hasiera/services/hasiera.js new file mode 100644 index 0000000..6f2ea8d --- /dev/null +++ b/back/src/api/hasiera/services/hasiera.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * hasiera service. + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::hasiera.hasiera'); diff --git a/back/src/components/orokorra/helbidea.json b/back/src/components/orokorra/helbidea.json new file mode 100644 index 0000000..14b35f5 --- /dev/null +++ b/back/src/components/orokorra/helbidea.json @@ -0,0 +1,17 @@ +{ + "collectionName": "components_helbidea_helbideas", + "info": { + "displayName": "helbidea", + "icon": "home", + "description": "" + }, + "options": {}, + "attributes": { + "lehenLerroa": { + "type": "string" + }, + "bigarrenLerroa": { + "type": "string" + } + } +}