Skip to content

Commit

Permalink
feat(Evenement): ajout de la collection evenement
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandoraaa committed Dec 9, 2022
1 parent fc3ed17 commit 2941a8f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/api/evenement/content-types/evenement/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"kind": "collectionType",
"collectionName": "evenements",
"info": {
"singularName": "evenement",
"pluralName": "evenements",
"displayName": "Evenement"
},
"options": {
"draftAndPublish": true
},
"attributes": {
"dateDebut": {
"type": "datetime"
}
}
}
7 changes: 7 additions & 0 deletions src/api/evenement/controllers/evenement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* evenement controller
*/

import { factories } from '@strapi/strapi'

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

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

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

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

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

0 comments on commit 2941a8f

Please sign in to comment.