Added getAllArticles and refactor

This commit is contained in:
Florian Sylvain committed 2022-10-14 12:21:27 +02:00
1 parent 68495b6430
commit 6328f9b8c1
3 files changed
+56 -29

No files matched your search

+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"))