unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
17 lines (16 loc) • 1.05 kB
TypeScript
import { Request, Response } from 'express';
import Controller from '../../controller';
import { IUnleashServices } from '../../../types/services';
import { IUnleashConfig } from '../../../types/option';
import { IArchivedQuery, IProjectParam } from '../../../types/model';
import { HealthOverviewSchema } from '../../../openapi/spec/health-overview-schema';
import { HealthReportSchema } from '../../../openapi/spec/health-report-schema';
import { IAuthRequest } from '../../unleash-types';
export default class ProjectHealthReport extends Controller {
private projectHealthService;
private openApiService;
private logger;
constructor(config: IUnleashConfig, { projectHealthService, openApiService, }: Pick<IUnleashServices, 'projectHealthService' | 'openApiService'>);
getProjectHealthOverview(req: IAuthRequest<IProjectParam, unknown, unknown, IArchivedQuery>, res: Response<HealthOverviewSchema>): Promise<void>;
getProjectHealthReport(req: Request<IProjectParam>, res: Response<HealthReportSchema>): Promise<void>;
}