def _get_current_route(self, flask_request):
endpoint = flask_request.endpoint<EOL>method = flask_request.method<EOL>route_key = self._route_key(method, endpoint)<EOL>route = self._dict_of_routes.get(route_key, None)<EOL>if not route:<EOL><INDENT>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", endpoint, method, route_key)<EOL>raise KeyError("<STR_LIT>")<EOL><DEDENT>return route<EOL>
Get the route (Route) based on the current request

:param request flask_request: Flask Request
:return: Route matching the endpoint and method of the request