add prices page

This commit is contained in:
Schneider Roland
2025-01-28 23:09:42 +01:00
parent ceac176558
commit 93af3607e9
12 changed files with 333 additions and 18 deletions

View File

@@ -0,0 +1,46 @@
{
"kind": "singleType",
"collectionName": "prices_pages",
"info": {
"singularName": "prices-page",
"pluralName": "prices-pages",
"displayName": "PricesPage"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"header": {
"type": "string"
},
"description": {
"type": "text"
},
"price": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-price-component.yoga-price-component"
},
"discount": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-discount-component.yoga-discount-component"
},
"blogs": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-blog-posts-component.yoga-blog-posts-component"
},
"subscribe": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-subscribe-now-component.yoga-subscribe-now-component"
},
"footer": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
}
}
}

View File

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

View File

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

View File

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