-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose programmatic way of loading a model #2
Comments
This is already possible, the only issue is that the name of the option |
@simoneb Types are wrong then. Can I submit a PR that would fix it then? |
absolutely! you may want to rename the argument to model, too. it will require a semver major but it would be a more accurate name |
@simoneb Implemented it in backwards-compatible way, but if you prefer to only keep one param, can drop the |
According to official documentation, it is possible to instantiate casbin model programmatically instead of loading it from file. See https://casbin.org/docs/en/model-storage#load-model-from-code
Would you be open to a PR that would implement support for the same in
fastify-casbin
?The text was updated successfully, but these errors were encountered: