30 lines
942 B
TypeScript
30 lines
942 B
TypeScript
/**
|
|
|
|
* Settings controller — HTTP handlers for reading and updating system-wide configuration.
|
|
|
|
* Delegates to [settingsService].
|
|
|
|
*/
|
|
import { Response } from 'express';
|
|
import { AuthRequest } from '../middleware/auth';
|
|
/**
|
|
|
|
* Returns the current system settings (password rules, token expiry, etc.).
|
|
|
|
* @param req - Authenticated admin request.
|
|
|
|
* @param res - JSON settings object on success, 500 on failure.
|
|
|
|
*/
|
|
export declare function getSettings(req: AuthRequest, res: Response): Promise<void>;
|
|
/**
|
|
|
|
* Partially updates system settings; only recognized fields in the request body are applied.
|
|
|
|
* @param req - Authenticated admin request. Body: optional password policy fields and token expiry strings.
|
|
|
|
* @param res - JSON with the updated settings on success, 400 on update failure.
|
|
|
|
*/
|
|
export declare function updateSettings(req: AuthRequest, res: Response): Promise<void>;
|
|
//# sourceMappingURL=settingsController.d.ts.map
|