diff --git a/src/api/global/content-types/global/schema.json b/src/api/global/content-types/global/schema.json deleted file mode 100644 index e890d93..0000000 --- a/src/api/global/content-types/global/schema.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "kind": "singleType", - "collectionName": "globals", - "info": { - "singularName": "global", - "pluralName": "globals", - "displayName": "GlobalVariables" - }, - "options": { "draftAndPublish": true }, - "pluginOptions": { "i18n": { "localized": true } }, - "attributes": { - "feedbackHeading": { - "pluginOptions": { "i18n": { "localized": true } }, - "type": "string", - "required": false - }, - "feedbackContent": { - "pluginOptions": { "i18n": { "localized": true } }, - "type": "text", - "required": false - } - } -} diff --git a/src/api/global/controllers/global.js b/src/api/global/controllers/global.js deleted file mode 100644 index 581e447..0000000 --- a/src/api/global/controllers/global.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -/** - * global controller - */ - -const { createCoreController } = require("@strapi/strapi").factories; - -module.exports = createCoreController("api::global.global"); diff --git a/src/api/global/routes/global.js b/src/api/global/routes/global.js deleted file mode 100644 index 6f1e24b..0000000 --- a/src/api/global/routes/global.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -/** - * global router - */ - -const { createCoreRouter } = require("@strapi/strapi").factories; - -module.exports = createCoreRouter("api::global.global"); diff --git a/src/api/global/services/global.js b/src/api/global/services/global.js deleted file mode 100644 index a135303..0000000 --- a/src/api/global/services/global.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -/** - * global service - */ - -const { createCoreService } = require("@strapi/strapi").factories; - -module.exports = createCoreService("api::global.global"); diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 46bd547..3e61da6 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -1287,58 +1287,6 @@ export interface ApiFormFlowPageFormFlowPage extends Schema.CollectionType { }; } -export interface ApiGlobalGlobal extends Schema.SingleType { - collectionName: 'globals'; - info: { - singularName: 'global'; - pluralName: 'globals'; - displayName: 'GlobalVariables'; - }; - options: { - draftAndPublish: true; - }; - pluginOptions: { - i18n: { - localized: true; - }; - }; - attributes: { - feedbackHeading: Attribute.String & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - feedbackContent: Attribute.Text & - Attribute.SetPluginOptions<{ - i18n: { - localized: true; - }; - }>; - createdAt: Attribute.DateTime; - updatedAt: Attribute.DateTime; - publishedAt: Attribute.DateTime; - createdBy: Attribute.Relation< - 'api::global.global', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - updatedBy: Attribute.Relation< - 'api::global.global', - 'oneToOne', - 'admin::user' - > & - Attribute.Private; - localizations: Attribute.Relation< - 'api::global.global', - 'oneToMany', - 'api::global.global' - >; - locale: Attribute.String; - }; -} - export interface ApiPagePage extends Schema.CollectionType { collectionName: 'pages'; info: { @@ -1820,7 +1768,6 @@ declare module '@strapi/types' { 'api::error.error': ApiErrorError; 'api::footer.footer': ApiFooterFooter; 'api::form-flow-page.form-flow-page': ApiFormFlowPageFormFlowPage; - 'api::global.global': ApiGlobalGlobal; 'api::page.page': ApiPagePage; 'api::page-header.page-header': ApiPageHeaderPageHeader; 'api::result-page.result-page': ApiResultPageResultPage;