add nextjs app: yoga-app
This commit is contained in:
@@ -17,6 +17,16 @@
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"image": {
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
33
strapi-yoga/src/api/page/content-types/page/schema.json
Normal file
33
strapi-yoga/src/api/page/content-types/page/schema.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "pages",
|
||||
"info": {
|
||||
"singularName": "page",
|
||||
"pluralName": "pages",
|
||||
"displayName": "Page",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"template": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"homepage"
|
||||
]
|
||||
},
|
||||
"parent": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::page.page"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
strapi-yoga/src/api/page/controllers/page.ts
Normal file
7
strapi-yoga/src/api/page/controllers/page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::page.page');
|
||||
7
strapi-yoga/src/api/page/routes/page.ts
Normal file
7
strapi-yoga/src/api/page/routes/page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::page.page');
|
||||
7
strapi-yoga/src/api/page/services/page.ts
Normal file
7
strapi-yoga/src/api/page/services/page.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::page.page');
|
||||
Reference in New Issue
Block a user