@staticmethod<EOL><INDENT>def convert_path_to_flask(path):<DEDENT>
proxy_sub_path = APIGW_TO_FLASK_REGEX.sub(FLASK_CAPTURE_ALL_PATH, path)<EOL>return proxy_sub_path.replace(LEFT_BRACKET, LEFT_ANGLE_BRACKET).replace(RIGHT_BRACKET, RIGHT_ANGLE_BRACKET)<EOL>
Converts a Path from an Api Gateway defined path to one that is accepted by Flask

Examples:

'/id/{id}' => '/id/<id>'
'/{proxy+}' => '/<path:proxy>'

:param str path: Path to convert to Flask defined path
:return str: Path representing a Flask path