Skip to content

Commit 4d39531

Browse files
@jap.purohitKillDozerX2
authored andcommitted
fix(Deny All Routes): 🚑 Deny All Routes sending allow
Changes parameter for the method denyAllRoutes
1 parent 682e047 commit 4d39531

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"editor.formatOnSave": true,
33
"[typescript]": {
44
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
5-
}
5+
},
6+
"conventionalCommits.scopes": [
7+
"Deny All Routes"
8+
]
69
}

src/authorizerResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class AuthorizerResponse {
263263
* Adds a '*' deny to the policy to deny access to all methods of an API
264264
*/
265265
denyAllRoutes(): void {
266-
this.addRoute("Allow", HttpVerbsEnum.ALL, "*");
266+
this.addRoute("Deny", HttpVerbsEnum.ALL, "*");
267267
}
268268

269269
/**

0 commit comments

Comments
 (0)