Files
old-backend/routes/protectedRoutes.go
2023-09-11 08:08:24 +02:00

24 lines
347 B
Go

/**
* Created by VoidArtanis on 10/22/2017
*/
package routes
import (
"pactual1/middlewares"
"pactual1/controllers"
"github.com/gin-gonic/gin"
)
func RegisterProtectedRoutes(r *gin.Engine){
authGroup := r.Group("/auth")
authGroup.Use(middlewares.AuthHandler("admin"))
{
authGroup.GET("/getmessage",controllers.GetSecretText)
}
}