Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 5cebd59

Browse files
authored
Merge pull request #14 from vim/feature/news
Feature/news
2 parents 43d49f6 + 9b15873 commit 5cebd59

File tree

9 files changed

+45
-39
lines changed

9 files changed

+45
-39
lines changed

.development.docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ version: "3"
22
services:
33
web:
44
container_name: app
5+
env_file:
6+
- web/.env
57
environment:
68
- CMS_API=http://cms:1337/api
79
build:

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

Lines changed: 0 additions & 18 deletions
This file was deleted.

cms/src/api/announcement/controllers/announcement.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

cms/src/api/announcement/routes/announcement.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

cms/src/api/announcement/services/announcement.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"kind": "collectionType",
3+
"collectionName": "newsposts",
4+
"info": {
5+
"singularName": "newspost",
6+
"pluralName": "newsposts",
7+
"displayName": "Newspost",
8+
"description": ""
9+
},
10+
"options": {
11+
"draftAndPublish": true
12+
},
13+
"pluginOptions": {},
14+
"attributes": {
15+
"title": {
16+
"type": "string"
17+
},
18+
"text": {
19+
"type": "text"
20+
}
21+
}
22+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* newspost controller
3+
*/
4+
5+
import { factories } from '@strapi/strapi'
6+
7+
export default factories.createCoreController('api::newspost.newspost');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* newspost router
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreRouter('api::newspost.newspost');
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* newspost service
3+
*/
4+
5+
import { factories } from '@strapi/strapi';
6+
7+
export default factories.createCoreService('api::newspost.newspost');

0 commit comments

Comments
 (0)