  
          Returns a list of the Route namedtuple.
          """
  
          # Determine any `@action` or `@link` decorated methods on the viewset
          dynamic_routes = []
          for methodname in dir(viewset):
              attr = getattr(viewset, methodname)
              httpmethods = getattr(attr, 'bind_to_methods', None)
 
</s>
        known_actions = flatten([route.mapping.values() for route in self.routes])

  
          Returns a list of the Route namedtuple.
          """
  
        known_actions = flatten([route.mapping.values() for route in self.routes])

          # Determine any `@action` or `@link` decorated methods on the viewset
          dynamic_routes = []
          for methodname in dir(viewset):
              attr = getattr(viewset, methodname)
              httpmethods = getattr(attr, 'bind_to_methods', None)
keep keep keep add keep keep keep keep keep
 Raise exception when attempting to dynamically route to a method that is already routed to. Fixes #940
rest_framework/routers.py