1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: fully remove enableLegacyRoutes option

This commit is contained in:
Ivar Conradi Østhus 2021-04-15 22:16:14 +02:00
parent 5214a7f88e
commit 06a7bb323c
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 0 additions and 8 deletions

View File

@ -91,5 +91,3 @@ unleash
```
[client-auth-unleash.js](https://github.com/Unleash/unleash/blob/master/examples/client-auth-unleash.js)
PS! Remember to disable legacy routes by setting the `enableLegacyRoutes` option to false. This will require all your clients to be on v3.x.

View File

@ -23,12 +23,6 @@ class IndexRouter extends Controller {
this.get(api.uri, this.index);
this.use(api.links.admin.uri, new AdminApi(config, services).router);
this.use(api.links.client.uri, new ClientApi(config, services).router);
// legacy support (remove in 4.x)
if (config.enableLegacyRoutes) {
const featureController = new FeatureController(services, config);
this.use('/api/features', featureController.router);
}
}
index(req, res) {