feat/role-check: wip

This commit is contained in:
2025-12-11 10:11:58 +07:00
parent ee06f42c06
commit 9bf7dacf55
4 changed files with 51 additions and 21 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { Permission } from "~/models/role";
// Should we define the keys first?
// export type Keys = 'key1' | 'key2' | 'key3' | etc
export const permissions: Record<string, Record<string, Permission[]>> = {
'/client/patient': {
'emp|reg': ['C','R','U','D'],
},
'/client/patient/add': {
'emp|reg': ['C','R','U','D'],
},
'/client/patient/{id}': {
'emp|reg': ['C','R','U','D'],
},
}