From b9c675f7ec37636c2b80ebeb66bcb1c9e06f6075 Mon Sep 17 00:00:00 2001 From: Baroshem Date: Sun, 15 Oct 2023 17:11:30 +0200 Subject: [PATCH] fix: unit tests for allowed methods --- test/fixtures/allowedMethods/nuxt.config.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/fixtures/allowedMethods/nuxt.config.ts b/test/fixtures/allowedMethods/nuxt.config.ts index 3e0e4ccb..d64d58cf 100644 --- a/test/fixtures/allowedMethods/nuxt.config.ts +++ b/test/fixtures/allowedMethods/nuxt.config.ts @@ -5,12 +5,16 @@ export default defineNuxtConfig({ MyModule ], security: { - allowedMethodsRestricter: ['POST'] + allowedMethodsRestricter: { + methods: ['POST'] + } }, routeRules: { '/test': { security: { - allowedMethodsRestricter: ['GET'] + allowedMethodsRestricter: { + methods: ['GET'] + } } } }