add prices page
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/prices-page/controllers/prices-page.ts
Normal file
7
yoga-cms/src/api/prices-page/controllers/prices-page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* prices-page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::prices-page.prices-page');
|
||||
7
yoga-cms/src/api/prices-page/routes/prices-page.ts
Normal file
7
yoga-cms/src/api/prices-page/routes/prices-page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* prices-page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::prices-page.prices-page');
|
||||
7
yoga-cms/src/api/prices-page/services/prices-page.ts
Normal file
7
yoga-cms/src/api/prices-page/services/prices-page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* prices-page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::prices-page.prices-page');
|
||||
Reference in New Issue
Block a user