Authorization
12/19/22Less than 1 minute
We use Casbin to do authorization validating.
Add Authority Middlware
Adding the -c parameter when creating an API project will automatically generate the Casbin middleware.
Use in api file
@server(
jwt: Auth
group: api
middleware: Authority
)