18 lines
254 B
Go
18 lines
254 B
Go
//
|
|
// middleware.go
|
|
// Copyright (C) 2022 tiglog <me@tiglog.com>
|
|
//
|
|
// Distributed under terms of the MIT license.
|
|
//
|
|
|
|
package gcasbin
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func GinCasbin() gin.HandlerFunc {
|
|
return func(c *gin.Context) {
|
|
c.Next()
|
|
}
|
|
|
|
}
|