mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 11:43:22 +02:00
Added auth (login/logout) system
This commit is contained in:
@@ -19,10 +19,14 @@ 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.DELETE("/delete-article", internal.DeleteArticle)
|
||||
|
||||
r.POST("/login", internal.LoginUser)
|
||||
r.POST("/logout", internal.LogoutUser)
|
||||
|
||||
r.Run(":" + os.Getenv("API_PORT"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user