Skip to content

Commit

Permalink
feat: add homepage single-type
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjong committed Aug 25, 2023
1 parent ef27802 commit 15de8e3
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"kind": "singleType",
"collectionName": "homepages",
"info": {
"singularName": "homepage",
"pluralName": "homepages",
"displayName": "Homepage"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"Title": {
"type": "string",
"required": true,
"default": "Toezicht en Handhaving"
}
}
}
7 changes: 7 additions & 0 deletions apps/vth-dashboard/src/api/homepage/controllers/homepage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* homepage controller
*/

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

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

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

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

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

export default factories.createCoreService('api::homepage.homepage');
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* sub-thema controller
*/

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

export default factories.createCoreController('api::sub-thema.sub-thema');
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* thema-content controller
*/

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

export default factories.createCoreController('api::thema-content.thema-content');
2 changes: 1 addition & 1 deletion apps/vth-dashboard/src/api/thema/controllers/thema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* thema controller
*/

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

export default factories.createCoreController('api::thema.thema');

0 comments on commit 15de8e3

Please sign in to comment.