Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad committed Jan 16, 2021
1 parent 0dbcfb6 commit 628a09e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ fastify.get(
// enable fastify-casbin-rest plugin on this route, override default "getObj" rule
casbin: {
rest: {
getObj: request => request.userId
getSub: request => request.userId,
getAct: 'read'
},
}
},
Expand Down

0 comments on commit 628a09e

Please sign in to comment.