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:
parent
5214a7f88e
commit
06a7bb323c
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user