File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,8 @@ export const plugins: Config['plugins'] = [
390
390
]
391
391
```
392
392
393
- ### addPolicy
394
- Register AdonisJS bouncer policy to the list of ` policies ` object exported from the ` app/policies/main.ts ` file.
393
+ ### addPolicies
394
+ Register AdonisJS bouncer policies to the list of ` policies ` object exported from the ` app/policies/main.ts ` file.
395
395
396
396
> [ !IMPORTANT]
397
397
> This codemod expects the ` app/policies/main.ts ` file to exist and must export a ` policies ` object from it.
@@ -400,7 +400,7 @@ Register AdonisJS bouncer policy to the list of `policies` object exported from
400
400
const transformer = new CodeTransformer (appRoot )
401
401
402
402
try {
403
- await transformer .addPolicy ([
403
+ await transformer .addPolicies ([
404
404
{
405
405
name: ' PostPolicy' ,
406
406
path: ' #policies/post_policy'
You can’t perform that action at this time.
0 commit comments