FreePad/lib/controllers/controllers_admin.go

20 lines
266 B
Go
Raw Normal View History

package controllers
import (
"fmt"
"github.com/gin-gonic/gin"
)
func AdminMiddleware(router *gin.RouterGroup) {
// Handl
router.Use(func(ctx *gin.Context) {
// Check which route we are accessing
fmt.Println(`Accesing: `, ctx.Request.RequestURI)
})
}