Skip to content

Commit

Permalink
chore: move streaming spike logic to Enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Dec 3, 2024
1 parent 8441242 commit a5cfb5b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 224 deletions.
2 changes: 1 addition & 1 deletion src/lib/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default async function getApp(
corsOriginMiddleware(services, config),
);
app.options(
`${baseUriPath}/api/client/streaming*`,
`${baseUriPath}/api/streaming/*`,
corsOriginMiddleware(services, config),
);

Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions src/lib/routes/client-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ import FeatureController from '../../features/client-feature-toggles/client-feat
import MetricsController from '../../features/metrics/instance/metrics';
import RegisterController from '../../features/metrics/instance/register';
import type { IUnleashConfig, IUnleashServices } from '../../types';
import { FeatureStreamingController } from '../../features/client-feature-toggles/client-feature-streaming.controller';

export default class ClientApi extends Controller {
constructor(config: IUnleashConfig, services: IUnleashServices) {
super(config);

this.use('/features', new FeatureController(services, config).router);
this.use(
'/streaming',
new FeatureStreamingController(services, config).router,
);
this.use('/metrics', new MetricsController(services, config).router);
this.use('/register', new RegisterController(services, config).router);
}
Expand Down
1 change: 0 additions & 1 deletion src/server-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ process.nextTick(async () => {
showUserDeviceCount: true,
flagOverviewRedesign: false,
licensedUsers: true,
streaming: true,
},
},
authentication: {
Expand Down

0 comments on commit a5cfb5b

Please sign in to comment.