UNPKG

unleash-server

Version:

Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.

16 lines 1.02 kB
import { type IUnleashConfig } from '../../types/index.js'; import type { Request, Response } from 'express'; import Controller from '../../routes/controller.js'; import type { IUnleashServices } from '../../services/index.js'; import type { IAuthRequest } from '../../routes/unleash-types.js'; import { type MaintenanceSchema } from '../../openapi/spec/maintenance-schema.js'; import type { ToggleMaintenanceSchema } from '../../openapi/spec/toggle-maintenance-schema.js'; export default class MaintenanceController extends Controller { private maintenanceService; private openApiService; private logger; constructor(config: IUnleashConfig, { maintenanceService, openApiService, }: Pick<IUnleashServices, 'maintenanceService' | 'openApiService'>); toggleMaintenance(req: IAuthRequest<unknown, unknown, ToggleMaintenanceSchema>, res: Response<MaintenanceSchema>): Promise<void>; getMaintenance(_req: Request, res: Response): Promise<void>; } //# sourceMappingURL=maintenance-controller.d.ts.map