base config

This commit is contained in:
Julian Krauser 2024-10-30 14:50:13 +01:00
parent 578aca62e5
commit 3cc3a60046
46 changed files with 18085 additions and 45 deletions

View file

@ -0,0 +1,40 @@
{
"kind": "singleType",
"collectionName": "globals",
"info": {
"singularName": "global",
"pluralName": "globals",
"displayName": "Global",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"navbar": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "global.navbar"
},
"footer": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "global.footer"
}
}
}

View file

@ -0,0 +1,7 @@
/**
* global controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::global.global');

View file

@ -0,0 +1,7 @@
/**
* global router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::global.global');

View file

@ -0,0 +1,7 @@
/**
* global service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::global.global');