mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
Added getAllArticles and refactor
This commit is contained in:
@@ -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