From 1b50f1a559c32788e25850d494922f2f5451410d Mon Sep 17 00:00:00 2001 From: "Andrew Freemantle (BJSS)" <87019731+andrewf-bjss@users.noreply.github.com> Date: Fri, 14 Apr 2023 14:06:36 +0100 Subject: [PATCH] feat(cb2-7977): adds new roles for viewing and amending reference data (#77) --- src/functions/functionalConfig.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/functions/functionalConfig.ts b/src/functions/functionalConfig.ts index d5e0681..d0a8dbf 100644 --- a/src/functions/functionalConfig.ts +++ b/src/functions/functionalConfig.ts @@ -138,4 +138,16 @@ export const functionConfig: { [key: string]: NonEmptyArray } = { path: "v1/document-retrieval", }, ], + "ReferenceData.View": [ + { + verbs: ["GET", "OPTIONS"], + path: "reference/*", + } + ], + "ReferenceData.Amend": [ + { + verbs: ["GET", "OPTIONS", "PUT", "POST", "DELETE"], + path: "reference/*", + } + ], };