diff options
| author | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-02-05 13:19:56 +0300 |
| commit | efa89313fa4152252b477aafd88f7cf4a66747d8 (patch) | |
| tree | 5939b251fe1bbc6bea3881a71154cabd3aa538ec /playground/src/api/about | |
| parent | f6de8611955bf382612996500efba21a2d64ea1f (diff) | |
| download | strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.tar.xz strapi-plugin-checkbox-list-efa89313fa4152252b477aafd88f7cf4a66747d8.zip | |
Initial Strapi plugin project
Diffstat (limited to 'playground/src/api/about')
| -rw-r--r-- | playground/src/api/about/content-types/about/schema.json | 23 | ||||
| -rw-r--r-- | playground/src/api/about/controllers/about.ts | 7 | ||||
| -rw-r--r-- | playground/src/api/about/routes/about.ts | 7 | ||||
| -rw-r--r-- | playground/src/api/about/services/about.ts | 7 |
4 files changed, 44 insertions, 0 deletions
diff --git a/playground/src/api/about/content-types/about/schema.json b/playground/src/api/about/content-types/about/schema.json new file mode 100644 index 0000000..581336f --- /dev/null +++ b/playground/src/api/about/content-types/about/schema.json @@ -0,0 +1,23 @@ +{ + "kind": "singleType", + "collectionName": "abouts", + "info": { + "singularName": "about", + "pluralName": "abouts", + "displayName": "About", + "description": "Write about yourself and the content you create" + }, + "options": { + "draftAndPublish": false + }, + "pluginOptions": {}, + "attributes": { + "title": { + "type": "string" + }, + "blocks": { + "type": "dynamiczone", + "components": ["shared.media", "shared.quote", "shared.rich-text", "shared.slider"] + } + } +} diff --git a/playground/src/api/about/controllers/about.ts b/playground/src/api/about/controllers/about.ts new file mode 100644 index 0000000..b8971a2 --- /dev/null +++ b/playground/src/api/about/controllers/about.ts @@ -0,0 +1,7 @@ +/** + * about controller + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreController('api::about.about'); diff --git a/playground/src/api/about/routes/about.ts b/playground/src/api/about/routes/about.ts new file mode 100644 index 0000000..872ab53 --- /dev/null +++ b/playground/src/api/about/routes/about.ts @@ -0,0 +1,7 @@ +/** + * about router. + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreRouter('api::about.about'); diff --git a/playground/src/api/about/services/about.ts b/playground/src/api/about/services/about.ts new file mode 100644 index 0000000..654db23 --- /dev/null +++ b/playground/src/api/about/services/about.ts @@ -0,0 +1,7 @@ +/** + * about service. + */ + +import { factories } from '@strapi/strapi'; + +export default factories.createCoreService('api::about.about'); |
