@mini2/core
Version:
Mini Express Framework - Lightweight and modular Express.js framework with TypeScript support
9 lines • 517 B
TypeScript
import { NextFunction, Response } from 'express';
import { IAuthenticatedRequest } from '../interfaces/authenticated.interface';
/** Header tabanlı auth kontrolü (throw’lu):
* - x-authenticated: "true" | "1" | "yes" → zorunlu
* - x-user-id: (opsiyonel)
* - x-user-permissions: "admin,editor" (opsiyonel, virgülle ayrılmış)
*/
export declare const authenticatedMiddleware: (req: IAuthenticatedRequest, _res: Response, next: NextFunction) => void;
//# sourceMappingURL=authenticated.middleware.d.ts.map