Files
old-backend/routes/protected_routes.go
2023-09-21 11:59:08 +02:00

24 lines
387 B
Go

/**
* Created by VoidArtanis on 10/22/2017
*/
package routes
import (
"gitlab.com/pactual1/backend/middlewares"
"gitlab.com/pactual1/backend/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)
}
}