Added getAllArticles and refactor

This commit is contained in:
Florian Sylvain
2022-10-14 12:21:27 +02:00
parent 68495b6430
commit 6328f9b8c1
3 changed files with 56 additions and 29 deletions
+1
View File
@@ -19,6 +19,7 @@ func initGin() {
r.SetTrustedProxies([]string{"localhost"})
r.GET("/ping", internal.Ping)
r.GET("/get-all-articles", internal.GetAllArticles)
r.POST("/add-article", internal.AddArticle)
r.Run(":" + os.Getenv("API_PORT"))