addition of new dashboard

This commit is contained in:
2026-08-20 15:08:32 +00:00
parent 0622018d95
commit bf59249ed7
161 changed files with 13170 additions and 119 deletions

View File

@@ -0,0 +1,35 @@
import { getConfig } from "../../common/config.js";
let evaluator;
export async function loadPep(app) {
const config = getConfig();
if (config.pdpType) {
const pepModulePath = `./${config.pdpType}.js`;
const { init, check } = await import(pepModulePath);
await init();
// // Follow AuthZEN base format
// // {
// // subject: {
// // type: "user",
// // id: "1abc",
// // },
// // action: {
// // name: "read"
// // },
// // resource: {
// // type: "data",
// // id: "2def",
// // properties: {
// // ownerID: "my@me.com"
// // }
// // }
// // }
evaluator = check;
}
}
export async function evaluate(req) {
return await evaluator(req);
}