Python Flask distinct two generics routes
Python Flask distinct two generics routes Question: In python flask I have two routes with approximately the same behaviour to redirect on another service. The first one is to redirect a generic request to another API. @app.route(‘/factory/<path:url>’, methods=[‘GET’, ‘POST’, ‘PUT’, ‘DELETE’]) @cross_origin() def request_factory(url: str): resp = manage_factory_message(request) return app.response_class( response=resp.content, mimetype=resp.headers[‘Content-Type’], status=resp.status_code ) And …