diff --git a/src/lib/features/context/context.test.ts b/src/lib/features/context/context.test.ts index c6775085b387..a1cb282acde4 100644 --- a/src/lib/features/context/context.test.ts +++ b/src/lib/features/context/context.test.ts @@ -166,7 +166,7 @@ test('should add and update a single context field with new legal values', async // invalid schema await request - .post(`${base}/api/admin/context/environment/legalValues`) + .post(`${base}/api/admin/context/environment/legal-values`) .send({ valueInvalid: 'invalid schema', description: 'Local environment', @@ -176,7 +176,7 @@ test('should add and update a single context field with new legal values', async // add a new context field legal value await request - .post(`${base}/api/admin/context/environment/legalValues`) + .post(`${base}/api/admin/context/environment/legal-values`) .send({ value: 'newvalue', description: 'new description', @@ -186,7 +186,7 @@ test('should add and update a single context field with new legal values', async // update existing context field legal value description await request - .post(`${base}/api/admin/context/environment/legalValues`) + .post(`${base}/api/admin/context/environment/legal-values`) .send({ value: 'newvalue', description: 'updated description', diff --git a/src/lib/features/context/context.ts b/src/lib/features/context/context.ts index 05713c8f83cd..20e28f062b0e 100644 --- a/src/lib/features/context/context.ts +++ b/src/lib/features/context/context.ts @@ -171,7 +171,7 @@ export class ContextController extends Controller { this.route({ method: 'post', - path: '/:contextField/legalValues', + path: '/:contextField/legal-values', handler: this.updateContextFieldLegalValue, permission: UPDATE_CONTEXT_FIELD, middleware: [