feat: complete SSR CRM and refine auth UI
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { authzMiddleware, getAuthzCatalog } from "@wrnexus/authz";
|
||||
import { getDb } from "@wrnexus/db";
|
||||
import { dbPermissionStore } from "@wrnexus/authz/db";
|
||||
import type { Middleware } from "@wrnexus/core";
|
||||
|
||||
// Production imports middleware before it opens configured databases. Resolve
|
||||
// the SQL-backed store on the first request, after runtime initialization.
|
||||
const middleware: Middleware = (ctx, next) =>
|
||||
authzMiddleware({ catalog: getAuthzCatalog(), store: dbPermissionStore(getDb()) })(ctx, next);
|
||||
|
||||
export default middleware;
|
||||
Reference in New Issue
Block a user