From 9b71231010e166ea9e95b5796ab672941393e678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 3 Oct 2026 22:00:07 +0200 Subject: [PATCH] Exempt the medication category routes from the module gate They are raw CRUD over the account's own rows, the data-layer reasoning every other medication route is exempt on. --- src/app/api/__tests__/module-route-gate-inventory.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/api/__tests__/module-route-gate-inventory.test.ts b/src/app/api/__tests__/module-route-gate-inventory.test.ts index 627962fe8..d3e4e7ecc 100644 --- a/src/app/api/__tests__/module-route-gate-inventory.test.ts +++ b/src/app/api/__tests__/module-route-gate-inventory.test.ts @@ -266,6 +266,10 @@ const EXEMPT_ROUTES: ReadonlyArray = [ // schedule + intake history intact. "src/app/api/medications/route.ts", "src/app/api/medications/layout/route.ts", + // v1.40 (#1041) — the person's own category vocabulary: the same row + // store, the same data-layer reasoning. + "src/app/api/medications/categories/route.ts", + "src/app/api/medications/categories/[key]/route.ts", "src/app/api/medications/compliance/route.ts", "src/app/api/medications/intake/route.ts", "src/app/api/medications/intake/bulk/route.ts",