Skip to content

Commit

Permalink
feat: add terms entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
onursagir committed Dec 9, 2024
1 parent 0d2d109 commit fd7f40c
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-ears-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cms": minor
---

Added `terms` entity type
40 changes: 40 additions & 0 deletions apps/cms/src/api/term/content-types/term/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"kind": "collectionType",
"collectionName": "terms",
"info": {
"singularName": "term",
"pluralName": "terms",
"displayName": "Termen"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"slug": {
"type": "string",
"required": true
},
"rdf": {
"allowedTypes": [
"files"
],
"type": "media",
"multiple": false
},
"ttl": {
"allowedTypes": [
"files"
],
"type": "media",
"multiple": false
},
"json": {
"allowedTypes": [
"files"
],
"type": "media",
"multiple": false
}
}
}
7 changes: 7 additions & 0 deletions apps/cms/src/api/term/controllers/term.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* term controller
*/

import { factories } from '@strapi/strapi'

export default factories.createCoreController('api::term.term');
7 changes: 7 additions & 0 deletions apps/cms/src/api/term/routes/term.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* term router
*/

import { factories } from '@strapi/strapi';

export default factories.createCoreRouter('api::term.term');
7 changes: 7 additions & 0 deletions apps/cms/src/api/term/services/term.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* term service
*/

import { factories } from '@strapi/strapi';

export default factories.createCoreService('api::term.term');

0 comments on commit fd7f40c

Please sign in to comment.