first init

This commit is contained in:
Power BI Dev
2026-08-17 10:52:09 +07:00
commit 88c7c653c2
9281 changed files with 2156575 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { Request, Response, NextFunction } from 'express';
import { Role } from '../types/index.js';
export interface AuthenticatedRequest extends Request {
boardAuth?: {
boardId: string;
role: Role;
board: any;
};
}
/**
* Middleware to require board authorization.
* Role parameter defaults to allowing both 'admin' and 'member'.
* Pass 'admin' to restrict to superadmin only.
*/
export declare function requireBoardAuth(requiredRole?: Role): (req: AuthenticatedRequest, res: Response, next: NextFunction) => Promise<void>;