Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 346d00a

Browse files
committed
updating models and adding partner
1 parent 012bf2e commit 346d00a

File tree

6 files changed

+62
-3
lines changed

6 files changed

+62
-3
lines changed

cms/src/api/contributor/content-types/contributor/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"type": "string",
1717
"required": true
1818
},
19-
"twitterHandle": {
19+
"twitter_handle": {
2020
"type": "string"
2121
},
22-
"discordHandle": {
22+
"discord_handle": {
2323
"type": "string"
2424
},
2525
"projects": {
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"kind": "collectionType",
3+
"collectionName": "partners",
4+
"info": {
5+
"singularName": "partner",
6+
"pluralName": "partners",
7+
"displayName": "Partner",
8+
"description": ""
9+
},
10+
"options": {
11+
"draftAndPublish": true
12+
},
13+
"pluginOptions": {},
14+
"attributes": {
15+
"name": {
16+
"type": "string",
17+
"required": true
18+
},
19+
"logo": {
20+
"type": "string",
21+
"required": true
22+
},
23+
"website": {
24+
"type": "string",
25+
"required": true
26+
},
27+
"twitter_handle": {
28+
"type": "string",
29+
"required": true
30+
}
31+
}
32+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
/**
4+
* partner controller
5+
*/
6+
7+
const { createCoreController } = require('@strapi/strapi').factories;
8+
9+
module.exports = createCoreController('api::partner.partner');

cms/src/api/partner/routes/partner.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
/**
4+
* partner router.
5+
*/
6+
7+
const { createCoreRouter } = require('@strapi/strapi').factories;
8+
9+
module.exports = createCoreRouter('api::partner.partner');
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
3+
/**
4+
* partner service.
5+
*/
6+
7+
const { createCoreService } = require('@strapi/strapi').factories;
8+
9+
module.exports = createCoreService('api::partner.partner');

cms/src/api/project/content-types/project/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"type": "string",
6262
"required": true
6363
},
64-
"twitterUrl": {
64+
"twitter_handle": {
6565
"pluginOptions": {
6666
"i18n": {
6767
"localized": true

0 commit comments

Comments
 (0)