You should mark the route above as deprecated:

```
 @app.route('/v1/repositories/<path:repository>/json', methods=['GET'])
```