Hackspace: init

This commit is contained in:
He4eT 2025-03-27 09:51:46 +01:00
commit 32b6f612c2
5 changed files with 114 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{
"kind": "singleType",
"collectionName": "hackspaces",
"info": {
"singularName": "hackspace",
"pluralName": "hackspaces",
"displayName": "Hackspace",
"description": ""
},
"options": {
"draftAndPublish": false
},
"attributes": {
"space": {
"type": "string",
"required": true
},
"logo": {
"type": "media",
"multiple": false,
"required": true,
"allowedTypes": [
"images"
]
},
"url": {
"type": "string",
"required": true
},
"contact": {
"type": "component",
"repeatable": false,
"component": "hackspace.contacts",
"required": true
}
}
}

View file

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

View file

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

View file

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