UNPKG

unleash-server

Version:

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

13 lines (12 loc) 782 B
import { Request, Response } from 'express'; import { IUnleashConfig } from '../../types/option'; import { IUnleashServices } from '../../types/services'; import Controller from '../controller'; import { PlaygroundResponseSchema } from '../../../lib/openapi/spec/playground-response-schema'; import { PlaygroundRequestSchema } from '../../../lib/openapi/spec/playground-request-schema'; export default class PlaygroundController extends Controller { private openApiService; private playgroundService; constructor(config: IUnleashConfig, { openApiService, playgroundService, }: Pick<IUnleashServices, 'openApiService' | 'playgroundService'>); evaluateContext(req: Request<any, any, PlaygroundRequestSchema>, res: Response<PlaygroundResponseSchema>): Promise<void>; }