mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
Cleaning here and there
This commit is contained in:
@@ -1,19 +1,15 @@
|
|||||||
# GohCMS
|
# GohCMS
|
||||||
## Setup
|
## Setup
|
||||||
### Use with Docker
|
### Use with Docker
|
||||||
To **build** the app, run the command
|
|
||||||
```shell
|
|
||||||
|
|
||||||
```
|
|
||||||
To **run** the app, run the command
|
To **run** the app, run the command
|
||||||
```shell
|
```shell
|
||||||
|
docker-compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
### Build and run it yourself
|
### Build and run it yourself
|
||||||
|
TODO
|
||||||
## Environment variables
|
## Environment variables
|
||||||
- ./env
|
- ./env
|
||||||
-
|
- TODO
|
||||||
-
|
## Demo
|
||||||
-
|
TODO
|
||||||
@@ -37,6 +37,7 @@ func AddArticle(c *gin.Context) {
|
|||||||
SendOkMessageToClient(c, "Article successfully added!")
|
SendOkMessageToClient(c, "Article successfully added!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO Change to GetArticleList that will find filter json context
|
||||||
func GetAllArticles(c *gin.Context) {
|
func GetAllArticles(c *gin.Context) {
|
||||||
var articles []Article
|
var articles []Article
|
||||||
documents, err := getDocuments(ARTICLES_LOCATION, bson.D{})
|
documents, err := getDocuments(ARTICLES_LOCATION, bson.D{})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
import Home from '../views/Home.vue'
|
import Home from '@/views/Home.vue'
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
|
|||||||
Reference in New Issue
Block a user