Fixed naming
This commit is contained in:
23
routes/protected_routes.go
Normal file
23
routes/protected_routes.go
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user