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.
This commit is contained in:
Marc-André Bombeck committed 2026-10-03 22:00:07 +02:00
1 parent b7458f0607
commit 9b71231010
1 file changed
+4
@@ -266,6 +266,10 @@ const EXEMPT_ROUTES: ReadonlyArray<string> = [
// 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",