Upstream sync

This commit is contained in:
Senad Uka
2023-09-18 12:27:40 +02:00
parent 9750aa2c37
commit 1f30f85787
30 changed files with 309 additions and 150 deletions

View File

@@ -12,12 +12,12 @@ import (
"github.com/gin-gonic/gin"
)
func RegisterProtectedRoutes(r *gin.Engine){
func RegisterProtectedRoutes(r *gin.Engine) {
authGroup := r.Group("/auth")
authGroup.Use(middlewares.AuthHandler("admin"))
{
authGroup.GET("/getmessage",controllers.GetSecretText)
authGroup.GET("/getmessage", controllers.GetSecretText)
}
}