Events: init

This commit is contained in:
He4eT 2025-04-01 12:54:37 +02:00
commit 7eba0b9622
4 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{
"kind": "collectionType",
"collectionName": "events",
"info": {
"singularName": "event",
"pluralName": "events",
"displayName": "Event"
},
"options": {
"draftAndPublish": false
},
"attributes": {
"name": {
"type": "string",
"required": true
},
"type": {
"type": "string",
"required": true
},
"timestamp": {
"type": "biginteger",
"required": true
},
"extra": {
"type": "text"
}
}
}

View file

@ -0,0 +1,7 @@
/**
* event controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::event.event');

View file

@ -0,0 +1,7 @@
/**
* event router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::event.event');

View file

@ -0,0 +1,7 @@
/**
* event service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::event.event');