Initial commit

This commit is contained in:
Stefan Prechtl 2022-09-20 10:43:05 +02:00
commit affe27b3e8
49 changed files with 33325 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{
"kind": "collectionType",
"collectionName": "notes",
"info": {
"singularName": "note",
"pluralName": "notes",
"displayName": "note"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"title": {
"type": "string",
"required": true
},
"content": {
"type": "text"
},
"owners": {
"type": "relation",
"relation": "oneToMany",
"target": "admin::user"
},
"lastViewed": {
"type": "datetime",
"required": true
}
}
}

View file

@ -0,0 +1,9 @@
'use strict';
/**
* note controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::note.note');

View file

@ -0,0 +1,9 @@
'use strict';
/**
* note router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::note.note');

View file

@ -0,0 +1,9 @@
'use strict';
/**
* note service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::note.note');