Commit 319986f
Changed files (3)
pkg/app/app.go
@@ -18,7 +18,7 @@ import (
)
func WithCasbin() authz.Authorizer {
- enforcer := x.Must(casbin.NewEnforcer("model.conf", "policy.csv"))
+ enforcer := x.Must(casbin.NewEnforcer("casbin.conf", "casbin.csv"))
return authz.AuthorizerFunc(func(r *http.Request) bool {
host, _, err := net.SplitHostPort(r.Host)
model.conf → casbin.conf
File renamed without changes
policy.csv → casbin.csv
File renamed without changes