Commit 319986f

mo khan <mo@mokhan.ca>
2025-03-20 16:53:47
refactor: rename casbin files
1 parent fc07382
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