Lastest objects for post, invite and add cron GNEWS
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "invites",
|
||||
"info": {
|
||||
"singularName": "invite",
|
||||
"pluralName": "invites",
|
||||
"displayName": "Invite",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"invitedUser": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"invitedBy": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "plugin::users-permissions.user"
|
||||
},
|
||||
"type": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"group",
|
||||
"choral"
|
||||
]
|
||||
},
|
||||
"members": {
|
||||
"type": "integer"
|
||||
},
|
||||
"invitedDate": {
|
||||
"type": "datetime"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* invite controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::invite.invite');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* invite router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::invite.invite');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* invite service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::invite.invite');
|
||||
Reference in New Issue
Block a user