Skip to content

Commit

Permalink
fix: unit tests for allowed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Oct 15, 2023
1 parent fdcdc8a commit b9c675f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/fixtures/allowedMethods/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ export default defineNuxtConfig({
MyModule
],
security: {
allowedMethodsRestricter: ['POST']
allowedMethodsRestricter: {
methods: ['POST']
}
},
routeRules: {
'/test': {
security: {
allowedMethodsRestricter: ['GET']
allowedMethodsRestricter: {
methods: ['GET']
}
}
}
}
Expand Down

0 comments on commit b9c675f

Please sign in to comment.