feat: hasiera sortzen du
This commit is contained in:
27
back/src/api/hasiera/content-types/hasiera/schema.json
Normal file
27
back/src/api/hasiera/content-types/hasiera/schema.json
Normal file
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
9
back/src/api/hasiera/controllers/hasiera.js
Normal file
9
back/src/api/hasiera/controllers/hasiera.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* hasiera controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::hasiera.hasiera');
|
||||
9
back/src/api/hasiera/routes/hasiera.js
Normal file
9
back/src/api/hasiera/routes/hasiera.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* hasiera router.
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::hasiera.hasiera');
|
||||
9
back/src/api/hasiera/services/hasiera.js
Normal file
9
back/src/api/hasiera/services/hasiera.js
Normal file
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* hasiera service.
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::hasiera.hasiera');
|
||||
17
back/src/components/orokorra/helbidea.json
Normal file
17
back/src/components/orokorra/helbidea.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"collectionName": "components_helbidea_helbideas",
|
||||
"info": {
|
||||
"displayName": "helbidea",
|
||||
"icon": "home",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"lehenLerroa": {
|
||||
"type": "string"
|
||||
},
|
||||
"bigarrenLerroa": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user