mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
e8d542af0f
* refactor: remove unused API definition routes * feat: add support for proxy keys * feat: support listening for any event * feat: embed proxy endpoints * refactor: add an experimental flag for the embedded proxy
19 lines
693 B
TypeScript
19 lines
693 B
TypeScript
import Controller from '../controller';
|
|
import FeatureController from './feature';
|
|
import MetricsController from './metrics';
|
|
import RegisterController from './register';
|
|
import { IUnleashConfig } from '../../types/option';
|
|
import { IUnleashServices } from '../../types';
|
|
|
|
export default class ClientApi extends Controller {
|
|
constructor(config: IUnleashConfig, services: IUnleashServices) {
|
|
super(config);
|
|
|
|
this.use('/features', new FeatureController(services, config).router);
|
|
this.use('/metrics', new MetricsController(services, config).router);
|
|
this.use('/register', new RegisterController(services, config).router);
|
|
}
|
|
}
|
|
|
|
module.exports = ClientApi;
|