feat: Added main logic, readme, formatting and clippy happy (#2)

* feat: github CI, basic filestructure

* feat: implement logic, readme, formatting, clippy happy
2 files changed
tree: 4465f3172dbcc7ced765ac11a89471edf1947344
  1. .github/
  2. acl/
  3. src/
  4. .env
  5. .gitignore
  6. Cargo.toml
  7. LICENSE
  8. README.md
README.md

ntex FileAdapter ACL

Basic integration of Casbin-RS with FileAdapter for ntex.

This example uses the ACL model.

Usage

cd examples/ntex_fileadapter_acl

Modify the files in the acl directory and the code in the src directory as required.

Running Server

cd examples/ntex_fileadapter_acl
cargo run (or ``cargo watch -x run``)

# Started http server: 127.0.0.1:8080

In this example, you can get the the result at http://localhost:8080/auth/{name}/{action}, please use alice or bob instead of {name}, use read or write instead of {action}.