unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
21 lines • 1.1 kB
TypeScript
import type { Response } from 'express';
import Controller from '../../controller.js';
import type { IUnleashConfig } from '../../../types/index.js';
import type { IAuthRequest } from '../../unleash-types.js';
import { type PatSchema } from '../../../openapi/spec/pat-schema.js';
import { type PatsSchema } from '../../../openapi/spec/pats-schema.js';
import { type CreatePatSchema } from '../../../openapi/spec/create-pat-schema.js';
import type { IUnleashServices } from '../../../services/index.js';
export default class PatController extends Controller {
private patService;
private openApiService;
private logger;
private flagResolver;
constructor(config: IUnleashConfig, { openApiService, patService, }: Pick<IUnleashServices, 'openApiService' | 'patService'>);
createPat(req: IAuthRequest<unknown, unknown, CreatePatSchema>, res: Response<PatSchema>): Promise<void>;
getPats(req: IAuthRequest, res: Response<PatsSchema>): Promise<void>;
deletePat(req: IAuthRequest<{
id: number;
}>, res: Response): Promise<void>;
}
//# sourceMappingURL=pat.d.ts.map