Added getAllArticles and refactor
This commit is contained in:
1 parent
68495b6430
commit
6328f9b8c1
3 files changed
+56
-29
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user